aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-25 15:07:58 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-25 15:07:58 -0500
commitd713f519332e029d43eca8462629314eee1ded86 (patch)
tree2bce92a20518105d8884b2bf5ff6fb1b5e3d7636
parent32a76006683f7b28ae3cc491da37716e002f198e (diff)
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>
-rw-r--r--kernel/printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index e6c1f36d8c3a..5f9d053699f9 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -707,7 +707,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
707 loglev_char = default_message_loglevel 707 loglev_char = default_message_loglevel
708 + '0'; 708 + '0';
709 } 709 }
710 t = printk_clock(); 710 t = cpu_clock(printk_cpu);
711 nanosec_rem = do_div(t, 1000000000); 711 nanosec_rem = do_div(t, 1000000000);
712 tlen = sprintf(tbuf, 712 tlen = sprintf(tbuf,
713 "<%c>[%5lu.%06lu] ", 713 "<%c>[%5lu.%06lu] ",