patch-2.3.13 linux/include/asm-m68k/softirq.h

Next file: linux/include/asm-m68k/spinlock.h
Previous file: linux/include/asm-m68k/semaphore.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/include/asm-m68k/softirq.h linux/include/asm-m68k/softirq.h
@@ -46,6 +46,9 @@
 
 extern unsigned int local_bh_count[NR_CPUS];
 
+#define local_bh_disable()	(local_bh_count[smp_processor_id()]++)
+#define local_bh_enable()	(local_bh_count[smp_processor_id()]--)
+
 extern inline void start_bh_atomic(void)
 {
 	local_bh_count[smp_processor_id()]++;

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