hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/irqflags.h
....@@ -71,6 +71,14 @@
7171 do { \
7272 __this_cpu_dec(hardirq_context); \
7373 } while (0)
74
+# define lockdep_softirq_enter() \
75
+do { \
76
+ current->softirq_context++; \
77
+} while (0)
78
+# define lockdep_softirq_exit() \
79
+do { \
80
+ current->softirq_context--; \
81
+} while (0)
7482
7583 # define lockdep_hrtimer_enter(__hrtimer) \
7684 ({ \
....@@ -130,21 +138,6 @@
130138 # define lockdep_posixtimer_exit() do { } while (0)
131139 # define lockdep_irq_work_enter(__work) do { } while (0)
132140 # define lockdep_irq_work_exit(__work) do { } while (0)
133
-#endif
134
-
135
-#if defined(CONFIG_TRACE_IRQFLAGS) && !defined(CONFIG_PREEMPT_RT)
136
-# define lockdep_softirq_enter() \
137
-do { \
138
- current->softirq_context++; \
139
-} while (0)
140
-# define lockdep_softirq_exit() \
141
-do { \
142
- current->softirq_context--; \
143
-} while (0)
144
-
145
-#else
146
-# define lockdep_softirq_enter() do { } while (0)
147
-# define lockdep_softirq_exit() do { } while (0)
148141 #endif
149142
150143 #if defined(CONFIG_IRQSOFF_TRACER) || \