aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_wakeup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_sched_wakeup.c')
-rw-r--r--kernel/trace/trace_sched_wakeup.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index 23e54d4e4d92..983f2b1478c9 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -334,18 +334,14 @@ static void stop_wakeup_tracer(struct trace_array *tr)
334static void wakeup_tracer_init(struct trace_array *tr) 334static void wakeup_tracer_init(struct trace_array *tr)
335{ 335{
336 wakeup_trace = tr; 336 wakeup_trace = tr;
337 337 start_wakeup_tracer(tr);
338 if (tr->ctrl)
339 start_wakeup_tracer(tr);
340} 338}
341 339
342static void wakeup_tracer_reset(struct trace_array *tr) 340static void wakeup_tracer_reset(struct trace_array *tr)
343{ 341{
344 if (tr->ctrl) { 342 stop_wakeup_tracer(tr);
345 stop_wakeup_tracer(tr); 343 /* make sure we put back any tasks we are tracing */
346 /* make sure we put back any tasks we are tracing */ 344 wakeup_reset(tr);
347 wakeup_reset(tr);
348 }
349} 345}
350 346
351static void wakeup_tracer_start(struct trace_array *tr) 347static void wakeup_tracer_start(struct trace_array *tr)