patch-2.3.99-pre7 linux/include/asm-mips/hardirq.h

Next file: linux/include/asm-mips/pgalloc.h
Previous file: linux/include/asm-mips/delay.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/include/asm-mips/hardirq.h linux/include/asm-mips/hardirq.h
@@ -10,6 +10,7 @@
 #ifndef _ASM_HARDIRQ_H
 #define _ASM_HARDIRQ_H
 
+#include <linux/config.h>
 #include <linux/threads.h>
 
 extern unsigned int local_irq_count[NR_CPUS];
@@ -22,7 +23,7 @@
 	(local_irq_count[__cpu] + local_bh_count[__cpu] != 0); })
 #define in_irq() (local_irq_count[smp_processor_id()] != 0)
 
-#ifndef __SMP__
+#ifndef CONFIG_SMP
 
 #define hardirq_trylock(cpu)	(local_irq_count[cpu] == 0)
 #define hardirq_endlock(cpu)	do { } while (0)
@@ -36,5 +37,5 @@
 
 #error No habla MIPS SMP
 
-#endif /* __SMP__ */
+#endif /* CONFIG_SMP */
 #endif /* _ASM_HARDIRQ_H */

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