patch-2.4.0-test3 linux/include/asm-sparc64/softirq.h
Next file: linux/include/linux/affs_fs.h
Previous file: linux/include/asm-sparc64/socket.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Jul 5 22:15:26 2000
- Orig file:
v2.4.0-test2/linux/include/asm-sparc64/softirq.h
- Orig date:
Thu May 11 15:30:08 2000
diff -u --recursive --new-file v2.4.0-test2/linux/include/asm-sparc64/softirq.h linux/include/asm-sparc64/softirq.h
@@ -12,14 +12,15 @@
#include <asm/system.h> /* for membar() */
#ifndef CONFIG_SMP
-extern unsigned int local_bh_count;
+extern unsigned int __local_bh_count;
+#define local_bh_count(cpu) __local_bh_count
#else
-#define local_bh_count (cpu_data[smp_processor_id()].bh_count)
+#define local_bh_count(cpu) (cpu_data[cpu].bh_count)
#endif
-#define local_bh_disable() (local_bh_count++)
-#define local_bh_enable() (local_bh_count--)
+#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 != 0)
+#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
#endif /* !(__SPARC64_SOFTIRQ_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)