patch-2.3.99-pre7 linux/include/asm-alpha/atomic.h
Next file: linux/include/asm-alpha/delay.h
Previous file: linux/fs/ufs/inode.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Mon May  8 22:00:01 2000
-  Orig file: 
v2.3.99-pre6/linux/include/asm-alpha/atomic.h
-  Orig date: 
Sat Feb 26 22:31:55 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/include/asm-alpha/atomic.h linux/include/asm-alpha/atomic.h
@@ -1,6 +1,8 @@
 #ifndef _ALPHA_ATOMIC_H
 #define _ALPHA_ATOMIC_H
 
+#include <linux/config.h>
+
 /*
  * Atomic operations that C can't guarantee us.  Useful for
  * resource counting etc...
@@ -9,7 +11,7 @@
  * than regular operations.
  */
 
-#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)