aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r--kernel/trace/trace_sched_switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 3e4771d3b890..2715267be469 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)
29 if (!tracer_enabled) 29 if (!tracer_enabled)
30 return; 30 return;
31 31
32 raw_local_irq_save(flags); 32 local_irq_save(flags);
33 cpu = raw_smp_processor_id(); 33 cpu = raw_smp_processor_id();
34 data = tr->data[cpu]; 34 data = tr->data[cpu];
35 disabled = atomic_inc_return(&data->disabled); 35 disabled = atomic_inc_return(&data->disabled);
@@ -38,7 +38,7 @@ ctx_switch_func(struct task_struct *prev, struct task_struct *next)
38 tracing_sched_switch_trace(tr, data, prev, next, flags); 38 tracing_sched_switch_trace(tr, data, prev, next, flags);
39 39
40 atomic_dec(&data->disabled); 40 atomic_dec(&data->disabled);
41 raw_local_irq_restore(flags); 41 local_irq_restore(flags);
42} 42}
43 43
44void ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next) 44void ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next)