Commit d713f519 authored by Ingo Molnar's avatar Ingo Molnar

sched: fix CONFIG_PRINT_TIME's reliance on sched_clock()

Stefano Brivio reported weird printk timestamp behavior during
CPU frequency changes:

  http://bugzilla.kernel.org/show_bug.cgi?id=9475

fix CONFIG_PRINT_TIME's reliance on sched_clock() and use cpu_clock()
instead.
Reported-and-bisected-by: default avatarStefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 32a76006
...@@ -707,7 +707,7 @@ asmlinkage int vprintk(const char *fmt, va_list args) ...@@ -707,7 +707,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
loglev_char = default_message_loglevel loglev_char = default_message_loglevel
+ '0'; + '0';
} }
t = printk_clock(); t = cpu_clock(printk_cpu);
nanosec_rem = do_div(t, 1000000000); nanosec_rem = do_div(t, 1000000000);
tlen = sprintf(tbuf, tlen = sprintf(tbuf,
"<%c>[%5lu.%06lu] ", "<%c>[%5lu.%06lu] ",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment