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

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

diff -u --recursive --new-file v2.3.42/linux/include/asm-alpha/hardirq.h linux/include/asm-alpha/hardirq.h
@@ -23,6 +23,8 @@
 	(local_irq_count(__cpu) + local_bh_count(__cpu)) != 0;	\
 })
 
+#define in_irq() (local_irq_count(smp_processor_id()) != 0)
+
 #ifndef __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)