mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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: Stefano Brivio <stefano.brivio@polimi.it> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
32a7600668
commit
d713f51933
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
|
|||
loglev_char = default_message_loglevel
|
||||
+ '0';
|
||||
}
|
||||
t = printk_clock();
|
||||
t = cpu_clock(printk_cpu);
|
||||
nanosec_rem = do_div(t, 1000000000);
|
||||
tlen = sprintf(tbuf,
|
||||
"<%c>[%5lu.%06lu] ",
|
||||
|
|
Loading…
Reference in a new issue