summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/hardirq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ia64/hardirq.h')
-rw-r--r--include/asm-ia64/hardirq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-ia64/hardirq.h b/include/asm-ia64/hardirq.h
index 95523854e..567243650 100644
--- a/include/asm-ia64/hardirq.h
+++ b/include/asm-ia64/hardirq.h
@@ -17,12 +17,16 @@ extern unsigned long hardirq_no[NR_CPUS];
* 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)
# define hardirq_endlock(cpu) ((void) 0)