patch-2.3.99-pre6 linux/include/linux/smp_lock.h

Next file: linux/include/linux/spinlock.h
Previous file: linux/include/linux/smp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/linux/smp_lock.h linux/include/linux/smp_lock.h
@@ -1,7 +1,9 @@
 #ifndef __LINUX_SMPLOCK_H
 #define __LINUX_SMPLOCK_H
 
-#ifndef __SMP__
+#include <linux/config.h>
+
+#ifndef CONFIG_SMP
 
 #define lock_kernel()				do { } while(0)
 #define unlock_kernel()				do { } while(0)
@@ -13,6 +15,6 @@
 
 #include <asm/smplock.h>
 
-#endif /* __SMP__ */
+#endif /* CONFIG_SMP */
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)