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

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)