2 #ifndef __ASM_SOFTIRQ_H
3 #define __ASM_SOFTIRQ_H
5 #include <asm/atomic.h>
6 #include <asm/hardirq.h>
8 #define local_bh_disable() \
10 local_bh_count(smp_processor_id())++; \
14 #define __local_bh_enable() \
17 local_bh_count(smp_processor_id())--; \
20 #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_SOFTIRQ_H */
31 #endif /* __KERNEL__ */