]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/trace/trace_sched_switch.c
forgotten refcount on sysctl root table
[karo-tx-linux.git] / kernel / trace / trace_sched_switch.c
index 93a66200915181591c034b113226883f5696a31a..cb817a209aa005d9b151b79e2ef52b48178dffd4 100644 (file)
@@ -227,14 +227,14 @@ void tracing_stop_cmdline_record(void)
 static void start_sched_trace(struct trace_array *tr)
 {
        sched_switch_reset(tr);
-       tracer_enabled = 1;
        tracing_start_cmdline_record();
+       tracer_enabled = 1;
 }
 
 static void stop_sched_trace(struct trace_array *tr)
 {
-       tracing_stop_cmdline_record();
        tracer_enabled = 0;
+       tracing_stop_cmdline_record();
 }
 
 static void sched_switch_trace_init(struct trace_array *tr)