.. | .. |
---|
71 | 71 | do { \ |
---|
72 | 72 | __this_cpu_dec(hardirq_context); \ |
---|
73 | 73 | } 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) |
---|
74 | 82 | |
---|
75 | 83 | # define lockdep_hrtimer_enter(__hrtimer) \ |
---|
76 | 84 | ({ \ |
---|
.. | .. |
---|
130 | 138 | # define lockdep_posixtimer_exit() do { } while (0) |
---|
131 | 139 | # define lockdep_irq_work_enter(__work) do { } while (0) |
---|
132 | 140 | # 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) |
---|
148 | 141 | #endif |
---|
149 | 142 | |
---|
150 | 143 | #if defined(CONFIG_IRQSOFF_TRACER) || \ |
---|