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

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

diff -u --recursive --new-file v2.3.42/linux/include/asm-sparc/hardirq.h linux/include/asm-sparc/hardirq.h
@@ -26,6 +26,8 @@
 
 #define synchronize_irq()	barrier()
 
+#define in_irq() (local_irq_count != 0)
+
 #else
 
 #include <asm/atomic.h>
@@ -44,6 +46,9 @@
  */
 #define in_interrupt() ({ int __cpu = smp_processor_id(); \
 	(local_irq_count[__cpu] + local_bh_count[__cpu] != 0); })
+
+#define in_irq() ({ int __cpu = smp_processor_id(); \
+	(local_irq_count[__cpu] != 0); })
 
 static inline void release_irqlock(int cpu)
 {

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