patch-2.4.2 linux/include/asm-cris/softirq.h
Next file: linux/include/asm-cris/stat.h
Previous file: linux/include/asm-cris/sockios.h
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
Thu Feb  8 16:32:44 2001
-  Orig file: 
v2.4.1/linux/include/asm-cris/softirq.h
-  Orig date: 
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.1/linux/include/asm-cris/softirq.h linux/include/asm-cris/softirq.h
@@ -0,0 +1,12 @@
+#ifndef __ASM_SOFTIRQ_H
+#define __ASM_SOFTIRQ_H
+
+#include <asm/atomic.h>
+#include <asm/hardirq.h>
+
+#define local_bh_disable()      (local_bh_count(smp_processor_id())++)
+#define local_bh_enable()       (local_bh_count(smp_processor_id())--)
+
+#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)