Skip to content

Commit 0d38453

Browse files
Peter ZijlstraKAGA-KOKO
authored andcommitted
lockdep: Rename trace_softirqs_{on,off}()
Continue what commit: d820ac4 ("locking: rename trace_softirq_[enter|exit] => lockdep_softirq_[enter|exit]") started, rename these to avoid confusing them with tracepoints. git grep -l "trace_softirqs_\(on\|off\)" | while read file; do sed -ie 's/trace_softirqs_\(on\|off\)/lockdep_softirqs_\1/g' $file; done Reported-by: Thomas Gleixner <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 2502ec3 commit 0d38453

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

include/linux/irqflags.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
#include <linux/typecheck.h>
1616
#include <asm/irqflags.h>
1717

18-
/* Currently trace_softirqs_on/off is used only by lockdep */
18+
/* Currently lockdep_softirqs_on/off is used only by lockdep */
1919
#ifdef CONFIG_PROVE_LOCKING
20-
extern void trace_softirqs_on(unsigned long ip);
21-
extern void trace_softirqs_off(unsigned long ip);
20+
extern void lockdep_softirqs_on(unsigned long ip);
21+
extern void lockdep_softirqs_off(unsigned long ip);
2222
extern void lockdep_hardirqs_on(unsigned long ip);
2323
extern void lockdep_hardirqs_off(unsigned long ip);
2424
#else
25-
static inline void trace_softirqs_on(unsigned long ip) { }
26-
static inline void trace_softirqs_off(unsigned long ip) { }
25+
static inline void lockdep_softirqs_on(unsigned long ip) { }
26+
static inline void lockdep_softirqs_off(unsigned long ip) { }
2727
static inline void lockdep_hardirqs_on(unsigned long ip) { }
2828
static inline void lockdep_hardirqs_off(unsigned long ip) { }
2929
#endif

kernel/locking/lockdep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,7 @@ NOKPROBE_SYMBOL(lockdep_hardirqs_off);
34683468
/*
34693469
* Softirqs will be enabled:
34703470
*/
3471-
void trace_softirqs_on(unsigned long ip)
3471+
void lockdep_softirqs_on(unsigned long ip)
34723472
{
34733473
struct task_struct *curr = current;
34743474

@@ -3508,7 +3508,7 @@ void trace_softirqs_on(unsigned long ip)
35083508
/*
35093509
* Softirqs were disabled:
35103510
*/
3511-
void trace_softirqs_off(unsigned long ip)
3511+
void lockdep_softirqs_off(unsigned long ip)
35123512
{
35133513
struct task_struct *curr = current;
35143514

kernel/softirq.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void __local_bh_disable_ip(unsigned long ip, unsigned int cnt)
126126
* Were softirqs turned off above:
127127
*/
128128
if (softirq_count() == (cnt & SOFTIRQ_MASK))
129-
trace_softirqs_off(ip);
129+
lockdep_softirqs_off(ip);
130130
raw_local_irq_restore(flags);
131131

132132
if (preempt_count() == cnt) {
@@ -147,7 +147,7 @@ static void __local_bh_enable(unsigned int cnt)
147147
trace_preempt_on(CALLER_ADDR0, get_lock_parent_ip());
148148

149149
if (softirq_count() == (cnt & SOFTIRQ_MASK))
150-
trace_softirqs_on(_RET_IP_);
150+
lockdep_softirqs_on(_RET_IP_);
151151

152152
__preempt_count_sub(cnt);
153153
}
@@ -174,7 +174,7 @@ void __local_bh_enable_ip(unsigned long ip, unsigned int cnt)
174174
* Are softirqs going to be turned on now:
175175
*/
176176
if (softirq_count() == SOFTIRQ_DISABLE_OFFSET)
177-
trace_softirqs_on(ip);
177+
lockdep_softirqs_on(ip);
178178
/*
179179
* Keep preemption disabled until we are done with
180180
* softirq processing:

0 commit comments

Comments
 (0)