Skip to content

Commit 5125eee

Browse files
icklerostedt
authored andcommitted
tracing: Fixup logic inversion on setting trace_global_clock defaults
In commit 932066a15335 ("tracing: Default to using trace_global_clock if sched_clock is unstable"), the logic for deciding to override the default clock if unstable was reversed from the earlier posting. I was trying to reduce the width of the message by using an early return rather than a if-block, but reverted back to using the if-block and accidentally left the predicate inverted. Link: http://lkml.kernel.org/r/[email protected] Fixes: 932066a15335 ("tracing: Default to using trace_global_clock if sched_clock is unstable") Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent f7a1570 commit 5125eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8602,7 +8602,7 @@ late_initcall_sync(clear_boot_tracer);
86028602
__init static int tracing_set_default_clock(void)
86038603
{
86048604
/* sched_clock_stable() is determined in late_initcall */
8605-
if (trace_boot_clock || sched_clock_stable()) {
8605+
if (!trace_boot_clock && !sched_clock_stable()) {
86068606
printk(KERN_WARNING
86078607
"Unstable clock detected, switching default tracing clock to \"global\"\n"
86088608
"If you want to keep using the local clock, then add:\n"

0 commit comments

Comments
 (0)