hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/bottom_half.h
....@@ -4,40 +4,7 @@
44
55 #include <linux/preempt.h>
66
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
-
40
-#ifdef CONFIG_TRACE_IRQFLAGS
7
+#if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_TRACE_IRQFLAGS)
418 extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt);
429 #else
4310 static __always_inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt)
....@@ -64,6 +31,11 @@
6431 {
6532 __local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
6633 }
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; }
6739 #endif
6840
6941 #endif /* _LINUX_BH_H */