1 #ifndef __ASM_SH_HARDIRQ_H
2 #define __ASM_SH_HARDIRQ_H
4 #include <linux/threads.h>
6 extern unsigned int local_irq_count
[NR_CPUS
];
7 #define in_interrupt() (local_irq_count[smp_processor_id()] != 0)
11 #define hardirq_trylock(cpu) (local_irq_count[cpu] == 0)
12 #define hardirq_endlock(cpu) do { } while (0)
14 #define hardirq_enter(cpu) (local_irq_count[cpu]++)
15 #define hardirq_exit(cpu) (local_irq_count[cpu]--)
17 #define synchronize_irq() do { } while (0)
21 #error Super-H SMP is not available
24 #endif /* __ASM_SH_HARDIRQ_H */