patch-2.4.0-test4 linux/include/asm-ppc/softirq.h

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

diff -u --recursive --new-file v2.4.0-test3/linux/include/asm-ppc/softirq.h linux/include/asm-ppc/softirq.h
@@ -6,9 +6,9 @@
 
 extern unsigned int local_bh_count[NR_CPUS];
 
-#define local_bh_disable()	do { local_bh_count[smp_processor_id()]++; barrier(); } while (0)
-#define local_bh_enable()	do { barrier(); local_bh_count[smp_processor_id()]--; } while (0)
+#define local_bh_disable()	do { local_bh_count(smp_processor_id())++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count(smp_processor_id())--; } while (0)
 
-#define in_softirq() (local_bh_count[smp_processor_id()] != 0)
+#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
 
 #endif	/* __ASM_SOFTIRQ_H */

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