File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ extern void rcu_nmi_exit(void);
3737 do { \
3838 account_irq_enter_time(current); \
3939 preempt_count_add(HARDIRQ_OFFSET); \
40- trace_hardirq_enter (); \
40+ lockdep_hardirq_enter (); \
4141 } while (0)
4242
4343/*
@@ -50,7 +50,7 @@ extern void irq_enter(void);
5050 */
5151#define __irq_exit () \
5252 do { \
53- trace_hardirq_exit (); \
53+ lockdep_hardirq_exit (); \
5454 account_irq_exit_time(current); \
5555 preempt_count_sub(HARDIRQ_OFFSET); \
5656 } while (0)
@@ -74,12 +74,12 @@ extern void irq_exit(void);
7474 BUG_ON(in_nmi()); \
7575 preempt_count_add(NMI_OFFSET + HARDIRQ_OFFSET); \
7676 rcu_nmi_enter(); \
77- trace_hardirq_enter (); \
77+ lockdep_hardirq_enter (); \
7878 } while (0)
7979
8080#define nmi_exit () \
8181 do { \
82- trace_hardirq_exit (); \
82+ lockdep_hardirq_exit (); \
8383 rcu_nmi_exit(); \
8484 BUG_ON(!in_nmi()); \
8585 preempt_count_sub(NMI_OFFSET + HARDIRQ_OFFSET); \
Original file line number Diff line number Diff line change 3535# define trace_softirq_context (p ) ((p)->softirq_context)
3636# define trace_hardirqs_enabled (p ) ((p)->hardirqs_enabled)
3737# define trace_softirqs_enabled (p ) ((p)->softirqs_enabled)
38- # define trace_hardirq_enter () \
38+ # define lockdep_hardirq_enter () \
3939do { \
4040 current->hardirq_context++; \
4141} while (0)
42- # define trace_hardirq_exit () \
42+ # define lockdep_hardirq_exit () \
4343do { \
4444 current->hardirq_context--; \
4545} while (0)
5858# define trace_softirq_context (p ) 0
5959# define trace_hardirqs_enabled (p ) 0
6060# define trace_softirqs_enabled (p ) 0
61- # define trace_hardirq_enter () do { } while (0)
62- # define trace_hardirq_exit () do { } while (0)
61+ # define lockdep_hardirq_enter () do { } while (0)
62+ # define lockdep_hardirq_exit () do { } while (0)
6363# define lockdep_softirq_enter () do { } while (0)
6464# define lockdep_softirq_exit () do { } while (0)
6565#endif
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ static inline bool lockdep_softirq_start(void)
226226
227227 if (trace_hardirq_context (current )) {
228228 in_hardirq = true;
229- trace_hardirq_exit ();
229+ lockdep_hardirq_exit ();
230230 }
231231
232232 lockdep_softirq_enter ();
@@ -239,7 +239,7 @@ static inline void lockdep_softirq_end(bool in_hardirq)
239239 lockdep_softirq_exit ();
240240
241241 if (in_hardirq )
242- trace_hardirq_enter ();
242+ lockdep_hardirq_enter ();
243243}
244244#else
245245static inline bool lockdep_softirq_start (void ) { return false; }
@@ -414,7 +414,8 @@ void irq_exit(void)
414414
415415 tick_irq_exit ();
416416 rcu_irq_exit ();
417- trace_hardirq_exit (); /* must be last! */
417+ /* must be last! */
418+ lockdep_hardirq_exit ();
418419}
419420
420421/*
Original file line number Diff line number Diff line change 66# define trace_softirq_context (p ) 0
77# define trace_hardirqs_enabled (p ) 0
88# define trace_softirqs_enabled (p ) 0
9- # define trace_hardirq_enter () do { } while (0)
10- # define trace_hardirq_exit () do { } while (0)
9+ # define lockdep_hardirq_enter () do { } while (0)
10+ # define lockdep_hardirq_exit () do { } while (0)
1111# define lockdep_softirq_enter () do { } while (0)
1212# define lockdep_softirq_exit () do { } while (0)
1313# define INIT_TRACE_IRQFLAGS
You can’t perform that action at this time.
0 commit comments