1 #ifndef _ALPHA_SOFTIRQ_H
2 #define _ALPHA_SOFTIRQ_H
4 #include <linux/stddef.h>
5 #include <asm/atomic.h>
6 #include <asm/hardirq.h>
8 extern inline void cpu_bh_disable(int cpu)
10 local_bh_count(cpu)++;
14 extern inline void __cpu_bh_enable(int cpu)
17 local_bh_count(cpu)--;
20 #define __local_bh_enable() __cpu_bh_enable(smp_processor_id())
21 #define local_bh_disable() cpu_bh_disable(smp_processor_id())
23 #define local_bh_enable() \
28 cpu = smp_processor_id(); \
29 if (!--local_bh_count(cpu) && softirq_pending(cpu)) \
33 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
35 #endif /* _ALPHA_SOFTIRQ_H */