diff options
Diffstat (limited to 'include/asm-m68k/hardirq.h')
-rw-r--r-- | include/asm-m68k/hardirq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-m68k/hardirq.h b/include/asm-m68k/hardirq.h index 76968803b..350fc0f69 100644 --- a/include/asm-m68k/hardirq.h +++ b/include/asm-m68k/hardirq.h @@ -5,6 +5,8 @@ extern unsigned int local_irq_count[NR_CPUS]; +#define in_interrupt() (local_irq_count[smp_processor_id()] + local_bh_count[smp_processor_id()] != 0) + #define hardirq_trylock(cpu) (++local_irq_count[cpu], (cpu) == 0) #define hardirq_endlock(cpu) (--local_irq_count[cpu]) |