patch-2.3.43 linux/include/asm-i386/hardirq.h
Next file: linux/include/asm-i386/io.h
Previous file: linux/include/asm-arm/types.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Feb 9 21:33:02 2000
- Orig file:
v2.3.42/linux/include/asm-i386/hardirq.h
- Orig date:
Fri Jan 21 18:19:17 2000
diff -u --recursive --new-file v2.3.42/linux/include/asm-i386/hardirq.h linux/include/asm-i386/hardirq.h
@@ -12,6 +12,8 @@
#define in_interrupt() ({ int __cpu = smp_processor_id(); \
(local_irq_count[__cpu] + local_bh_count[__cpu] != 0); })
+#define in_irq() (local_irq_count[smp_processor_id()] != 0)
+
#ifndef __SMP__
#define hardirq_trylock(cpu) (local_irq_count[cpu] == 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)