1 #ifndef __ASM_SH_SOFTIRQ_H
2 #define __ASM_SH_SOFTIRQ_H
4 #include <asm/atomic.h>
5 #include <asm/hardirq.h>
7 #define local_bh_disable() \
9 local_bh_count(smp_processor_id())++; \
13 #define __local_bh_enable() \
16 local_bh_count(smp_processor_id())--; \
19 #define local_bh_enable() \
22 if (!--local_bh_count(smp_processor_id()) \
23 && softirq_pending(smp_processor_id())) { \
28 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
30 #endif /* __ASM_SH_SOFTIRQ_H */