patch-2.1.73 linux/include/asm-mips/irq.h
Next file: linux/include/asm-mips/jazz.h
Previous file: linux/include/asm-mips/ioctls.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Dec 16 12:46:08 1997
- Orig file:
v2.1.72/linux/include/asm-mips/irq.h
- Orig date:
Thu Jun 26 12:33:39 1997
diff -u --recursive --new-file v2.1.72/linux/include/asm-mips/irq.h linux/include/asm-mips/irq.h
@@ -24,4 +24,22 @@
extern void disable_irq(unsigned int);
extern void enable_irq(unsigned int);
+extern unsigned int local_irq_count[];
+
+#ifdef __SMP__
+#error Send superfluous SMP boxes to ralf@uni-koblenz.de
+#else
+#define irq_enter(cpu, irq) (++local_irq_count[cpu])
+#define irq_exit(cpu, irq) (--local_irq_count[cpu])
+#endif
+
+extern unsigned int local_irq_count[];
+
+#ifdef __SMP__
+#error Send superfluous SMP boxes to ralf@uni-koblenz.de
+#else
+#define irq_enter(cpu, irq) (++local_irq_count[cpu])
+#define irq_exit(cpu, irq) (--local_irq_count[cpu])
+#endif
+
#endif /* __ASM_MIPS_IRQ_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov