Commit d820ac4c authored by Ingo Molnar's avatar Ingo Molnar

locking: rename trace_softirq_[enter|exit] => lockdep_softirq_[enter|exit]

Impact: cleanup

The naming clashes with upcoming softirq tracepoints, so rename the
APIs to lockdep_*().
Requested-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3c1f67d6
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
# define trace_softirqs_enabled(p) ((p)->softirqs_enabled) # define trace_softirqs_enabled(p) ((p)->softirqs_enabled)
# define trace_hardirq_enter() do { current->hardirq_context++; } while (0) # define trace_hardirq_enter() do { current->hardirq_context++; } while (0)
# define trace_hardirq_exit() do { current->hardirq_context--; } while (0) # define trace_hardirq_exit() do { current->hardirq_context--; } while (0)
# define trace_softirq_enter() do { current->softirq_context++; } while (0) # define lockdep_softirq_enter() do { current->softirq_context++; } while (0)
# define trace_softirq_exit() do { current->softirq_context--; } while (0) # define lockdep_softirq_exit() do { current->softirq_context--; } while (0)
# define INIT_TRACE_IRQFLAGS .softirqs_enabled = 1, # define INIT_TRACE_IRQFLAGS .softirqs_enabled = 1,
#else #else
# define trace_hardirqs_on() do { } while (0) # define trace_hardirqs_on() do { } while (0)
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
# define trace_softirqs_enabled(p) 0 # define trace_softirqs_enabled(p) 0
# define trace_hardirq_enter() do { } while (0) # define trace_hardirq_enter() do { } while (0)
# define trace_hardirq_exit() do { } while (0) # define trace_hardirq_exit() do { } while (0)
# define trace_softirq_enter() do { } while (0) # define lockdep_softirq_enter() do { } while (0)
# define trace_softirq_exit() do { } while (0) # define lockdep_softirq_exit() do { } while (0)
# define INIT_TRACE_IRQFLAGS # define INIT_TRACE_IRQFLAGS
#endif #endif
......
...@@ -180,7 +180,7 @@ asmlinkage void __do_softirq(void) ...@@ -180,7 +180,7 @@ asmlinkage void __do_softirq(void)
account_system_vtime(current); account_system_vtime(current);
__local_bh_disable((unsigned long)__builtin_return_address(0)); __local_bh_disable((unsigned long)__builtin_return_address(0));
trace_softirq_enter(); lockdep_softirq_enter();
cpu = smp_processor_id(); cpu = smp_processor_id();
restart: restart:
...@@ -220,7 +220,7 @@ asmlinkage void __do_softirq(void) ...@@ -220,7 +220,7 @@ asmlinkage void __do_softirq(void)
if (pending) if (pending)
wakeup_softirqd(); wakeup_softirqd();
trace_softirq_exit(); lockdep_softirq_exit();
account_system_vtime(current); account_system_vtime(current);
_local_bh_enable(); _local_bh_enable();
......
...@@ -157,11 +157,11 @@ static void init_shared_classes(void) ...@@ -157,11 +157,11 @@ static void init_shared_classes(void)
#define SOFTIRQ_ENTER() \ #define SOFTIRQ_ENTER() \
local_bh_disable(); \ local_bh_disable(); \
local_irq_disable(); \ local_irq_disable(); \
trace_softirq_enter(); \ lockdep_softirq_enter(); \
WARN_ON(!in_softirq()); WARN_ON(!in_softirq());
#define SOFTIRQ_EXIT() \ #define SOFTIRQ_EXIT() \
trace_softirq_exit(); \ lockdep_softirq_exit(); \
local_irq_enable(); \ local_irq_enable(); \
local_bh_enable(); local_bh_enable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment