patch-2.3.99-pre6 linux/include/asm-ppc/atomic.h

Next file: linux/include/asm-ppc/elf.h
Previous file: linux/include/asm-mips64/elf.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-ppc/atomic.h linux/include/asm-ppc/atomic.h
@@ -5,7 +5,9 @@
 #ifndef _ASM_PPC_ATOMIC_H_ 
 #define _ASM_PPC_ATOMIC_H_
 
-#ifdef __SMP__
+#include <linux/config.h>
+
+#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)