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

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, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)