Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

proper way to use atomic.h

0 views
Skip to first unread message

ldh

unread,
Nov 10, 2009, 2:17:14 PM11/10/09
to
Hello-

It seems that if I just do

#include <asm/atomic.h>

I don't get what I expect, in particular CONFIG_SMP is not defined and
LOCK_PREFIX is "", and the "atomic" operations aren't actually atomic.
If I do

#include <linux/autoconf.h>
#include <asm/atomic.h>

then everything works fine. Am I supposed to have to include this
file? Or is something wrong with my setup? This is on Debian. Thanks.

-Lewis

0 new messages