summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-06-08 22:30:28 -0700
committerOlof Johansson <olof@lixom.net>2013-06-08 22:30:47 -0700
commit4d8f509e7a5d2eb636d57ddb677e504a90a4f99d (patch)
tree2f359163b1e8a08bd0d3a478096d80623582bfbf /kernel/trace/trace.c
parentb9747b3aafa7687414491e789c1a1b05c8781018 (diff)
parent3cc3b617dc39dad1e566ccfc4500154cb7c51aa3 (diff)
downloadlwn-4d8f509e7a5d2eb636d57ddb677e504a90a4f99d.tar.gz
lwn-4d8f509e7a5d2eb636d57ddb677e504a90a4f99d.zip
Merge tag 'sirf-arm-soc-v3.10-fixes' of git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel into next/fixes-non-critical
From Barry Song, SiRF fixes for v3.10 (that we're punting to 3.11): - Replace include linux/module.h with linux/export.h - fix a checkpatch issue - use of_platform_populate instead of of_platform_bus_probe * tag 'sirf-arm-soc-v3.10-fixes' of git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel: arm: prima2: use of_platform_populate instead of of_platform_bus_probe ARM: prima2: fix a checkpatch issue ARM: prima2: Replace include linux/module.h with linux/export.h + Linux 3.10-rc4 Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index ae6fa2d1cdf7..4d79485b3237 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -6216,10 +6216,15 @@ __init static int tracer_alloc_buffers(void)
trace_init_cmdlines();
- register_tracer(&nop_trace);
-
+ /*
+ * register_tracer() might reference current_trace, so it
+ * needs to be set before we register anything. This is
+ * just a bootstrap of current_trace anyway.
+ */
global_trace.current_trace = &nop_trace;
+ register_tracer(&nop_trace);
+
/* All seems OK, enable tracing */
tracing_disabled = 0;