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

Next file: linux/include/linux/string.h
Previous file: linux/include/linux/smp_lock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/linux/spinlock.h linux/include/linux/spinlock.h
@@ -1,6 +1,8 @@
 #ifndef __LINUX_SPINLOCK_H
 #define __LINUX_SPINLOCK_H
 
+#include <linux/config.h>
+
 /*
  * These are the generic versions of the spinlocks and read-write
  * locks..
@@ -29,7 +31,7 @@
 #define write_unlock_irq(lock)			do { write_unlock(lock); local_irq_enable();       } while (0)
 #define write_unlock_bh(lock)			do { write_unlock(lock); local_bh_enable();        } while (0)
 
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 #include <asm/spinlock.h>
 
 #else /* !SMP */

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