patch-2.3.45 linux/include/asm-arm/hardirq.h
Next file: linux/include/asm-arm/io.h
Previous file: linux/include/asm-alpha/pgtable.h
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Sun Feb 13 10:47:01 2000
- Orig file:
v2.3.44/linux/include/asm-arm/hardirq.h
- Orig date:
Tue Sep 7 12:14:07 1999
diff -u --recursive --new-file v2.3.44/linux/include/asm-arm/hardirq.h linux/include/asm-arm/hardirq.h
@@ -9,7 +9,10 @@
* Are we in an interrupt context? Either doing bottom half
* or hardware interrupt processing?
*/
-#define in_interrupt() (local_irq_count[smp_processor_id()] + local_bh_count[smp_processor_id()] != 0)
+#define in_interrupt() ({ const 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__
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)