diff options
Diffstat (limited to 'include/asm-alpha/hardirq.h')
-rw-r--r-- | include/asm-alpha/hardirq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-alpha/hardirq.h b/include/asm-alpha/hardirq.h index 67544e13d..86e895b83 100644 --- a/include/asm-alpha/hardirq.h +++ b/include/asm-alpha/hardirq.h @@ -23,6 +23,8 @@ extern int __local_irq_count; (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) |