diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-12 21:20:44 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 20:40:05 +0200 |
commit | 18cef379d30f5ded20cc31d7f2d342639d39919d (patch) | |
tree | cd193ad51e39cf0987ef815a6ef0cd1017e075ee /kernel/trace/trace_sched_switch.c | |
parent | 0764d23cf066c52de42b653144605b481d3fbdbc (diff) | |
download | kernel_goldelico_gta04-18cef379d30f5ded20cc31d7f2d342639d39919d.zip kernel_goldelico_gta04-18cef379d30f5ded20cc31d7f2d342639d39919d.tar.gz kernel_goldelico_gta04-18cef379d30f5ded20cc31d7f2d342639d39919d.tar.bz2 |
ftrace: don't use raw_local_irq_save/restore
Using raw_local_irq_save/restore confuses lockdep.
It's fine to use the normal ones.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r-- | kernel/trace/trace_sched_switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 3e4771d..2715267 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c @@ -29,7 +29,7 @@ ctx_switch_func(struct task_struct *prev, struct task_struct *next) if (!tracer_enabled) return; - raw_local_irq_save(flags); + local_irq_save(flags); cpu = raw_smp_processor_id(); data = tr->data[cpu]; disabled = atomic_inc_return(&data->disabled); @@ -38,7 +38,7 @@ ctx_switch_func(struct task_struct *prev, struct task_struct *next) tracing_sched_switch_trace(tr, data, prev, next, flags); atomic_dec(&data->disabled); - raw_local_irq_restore(flags); + local_irq_restore(flags); } void ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next) |