patch-2.3.43 linux/include/asm-sparc64/hardirq.h

Next file: linux/include/asm-sparc64/io.h
Previous file: linux/include/asm-sparc64/bitops.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/include/asm-sparc64/hardirq.h linux/include/asm-sparc64/hardirq.h
@@ -16,9 +16,12 @@
 
 /*
  * Are we in an interrupt context? Either doing bottom half
- * or hardware interrupt processing?
+ * or hardware interrupt processing?  On any cpu?
  */
 #define in_interrupt() ((local_irq_count + local_bh_count) != 0)
+
+/* This tests only the local processors hw IRQ context disposition.  */
+#define in_irq() (local_irq_count != 0)
 
 #ifndef __SMP__
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)