| .. | .. |
|---|
| 4 | 4 | |
|---|
| 5 | 5 | #include <linux/preempt.h> |
|---|
| 6 | 6 | |
|---|
| 7 | | -#if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_TRACE_IRQFLAGS) |
|---|
| 7 | +#ifdef CONFIG_TRACE_IRQFLAGS |
|---|
| 8 | 8 | extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt); |
|---|
| 9 | 9 | #else |
|---|
| 10 | 10 | static __always_inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) |
|---|
| .. | .. |
|---|
| 31 | 31 | { |
|---|
| 32 | 32 | __local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET); |
|---|
| 33 | 33 | } |
|---|
| 34 | | - |
|---|
| 35 | | -#ifdef CONFIG_PREEMPT_RT |
|---|
| 36 | | -extern bool local_bh_blocked(void); |
|---|
| 37 | | -#else |
|---|
| 38 | | -static inline bool local_bh_blocked(void) { return false; } |
|---|
| 39 | | -#endif |
|---|
| 40 | 34 | |
|---|
| 41 | 35 | #endif /* _LINUX_BH_H */ |
|---|