patch-2.3.6 linux/include/asm-alpha/softirq.h
Next file: linux/include/asm-alpha/spinlock.h
Previous file: linux/fs/umsdos/check.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Jun 3 14:32:26 1999
- Orig file:
v2.3.5/linux/include/asm-alpha/softirq.h
- Orig date:
Sun Dec 27 15:20:32 1998
diff -u --recursive --new-file v2.3.5/linux/include/asm-alpha/softirq.h linux/include/asm-alpha/softirq.h
@@ -5,6 +5,16 @@
#include <asm/atomic.h>
#include <asm/hardirq.h>
+/*
+ * This works but is wrong - on SMP it should disable only on the
+ * current CPU and shouldn't synchronize like the heavy global
+ * disable does. Oh, well.
+ *
+ * See the x86 version for an example.
+ */
+#define local_bh_enable() start_bh_atomic()
+#define local_bh_disable() end_bh_atomic()
+
extern unsigned int local_bh_count[NR_CPUS];
#define get_active_bhs() (bh_mask & bh_active)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)