patch-2.3.99-pre6 linux/include/asm-i386/atomic.h
Next file: linux/include/asm-i386/bitops.h
Previous file: linux/include/asm-i386/apicdef.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Apr 26 15:29:06 2000
- Orig file:
v2.3.99-pre5/linux/include/asm-i386/atomic.h
- Orig date:
Sat Feb 26 22:31:55 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-i386/atomic.h linux/include/asm-i386/atomic.h
@@ -1,12 +1,14 @@
#ifndef __ARCH_I386_ATOMIC__
#define __ARCH_I386_ATOMIC__
+#include <linux/config.h>
+
/*
* Atomic operations that C can't guarantee us. Useful for
* resource counting etc..
*/
-#ifdef __SMP__
+#ifdef CONFIG_SMP
#define LOCK "lock ; "
#else
#define LOCK ""
@@ -19,7 +21,7 @@
*/
#define __atomic_fool_gcc(x) (*(volatile struct { int a[100]; } *)x)
-#ifdef __SMP__
+#ifdef CONFIG_SMP
typedef struct { volatile int counter; } atomic_t;
#else
typedef struct { int counter; } atomic_t;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)