diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 2c720c79bc60..40edef4255c5 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -3167,12 +3167,9 @@ __init static int tracer_alloc_buffers(void) | |||
3167 | trace_init_cmdlines(); | 3167 | trace_init_cmdlines(); |
3168 | 3168 | ||
3169 | register_tracer(&nop_trace); | 3169 | register_tracer(&nop_trace); |
3170 | current_trace = &nop_trace; | ||
3170 | #ifdef CONFIG_BOOT_TRACER | 3171 | #ifdef CONFIG_BOOT_TRACER |
3171 | register_tracer(&boot_tracer); | 3172 | register_tracer(&boot_tracer); |
3172 | current_trace = &boot_tracer; | ||
3173 | current_trace->init(&global_trace); | ||
3174 | #else | ||
3175 | current_trace = &nop_trace; | ||
3176 | #endif | 3173 | #endif |
3177 | /* All seems OK, enable tracing */ | 3174 | /* All seems OK, enable tracing */ |
3178 | tracing_disabled = 0; | 3175 | tracing_disabled = 0; |