patch-2.3.45 linux/include/asm-ia64/hardirq.h
Next file: linux/include/asm-ia64/mmu_context.h
Previous file: linux/include/asm-ia64/fpswa.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Feb 13 10:31:06 2000
- Orig file:
v2.3.44/linux/include/asm-ia64/hardirq.h
- Orig date:
Thu Feb 10 17:11:20 2000
diff -u --recursive --new-file v2.3.44/linux/include/asm-ia64/hardirq.h linux/include/asm-ia64/hardirq.h
@@ -17,11 +17,15 @@
* or hardware interrupt processing?
*/
+#define in_irq() (local_irq_count[smp_processor_id()] != 0)
+
#define in_interrupt() \
({ \
int __cpu = smp_processor_id(); \
(local_irq_count[__cpu] + local_bh_count[__cpu]) != 0; \
})
+
+
#ifndef CONFIG_SMP
# define hardirq_trylock(cpu) (local_irq_count[cpu] == 0)
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])