| .. | .. |
|---|
| 4 | 4 | |
|---|
| 5 | 5 | #include <linux/preempt.h> |
|---|
| 6 | 6 | |
|---|
| 7 | +#ifdef CONFIG_PREEMPT_RT_FULL |
|---|
| 8 | + |
|---|
| 9 | +extern void __local_bh_disable(void); |
|---|
| 10 | +extern void _local_bh_enable(void); |
|---|
| 11 | +extern void __local_bh_enable(void); |
|---|
| 12 | + |
|---|
| 13 | +static inline void local_bh_disable(void) |
|---|
| 14 | +{ |
|---|
| 15 | + __local_bh_disable(); |
|---|
| 16 | +} |
|---|
| 17 | + |
|---|
| 18 | +static inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) |
|---|
| 19 | +{ |
|---|
| 20 | + __local_bh_disable(); |
|---|
| 21 | +} |
|---|
| 22 | + |
|---|
| 23 | +static inline void local_bh_enable(void) |
|---|
| 24 | +{ |
|---|
| 25 | + __local_bh_enable(); |
|---|
| 26 | +} |
|---|
| 27 | + |
|---|
| 28 | +static inline void __local_bh_enable_ip(unsigned long ip, unsigned int cnt) |
|---|
| 29 | +{ |
|---|
| 30 | + __local_bh_enable(); |
|---|
| 31 | +} |
|---|
| 32 | + |
|---|
| 33 | +static inline void local_bh_enable_ip(unsigned long ip) |
|---|
| 34 | +{ |
|---|
| 35 | + __local_bh_enable(); |
|---|
| 36 | +} |
|---|
| 37 | + |
|---|
| 38 | +#else |
|---|
| 39 | + |
|---|
| 7 | 40 | #ifdef CONFIG_TRACE_IRQFLAGS |
|---|
| 8 | 41 | extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt); |
|---|
| 9 | 42 | #else |
|---|
| .. | .. |
|---|
| 31 | 64 | { |
|---|
| 32 | 65 | __local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET); |
|---|
| 33 | 66 | } |
|---|
| 67 | +#endif |
|---|
| 34 | 68 | |
|---|
| 35 | 69 | #endif /* _LINUX_BH_H */ |
|---|