Skip to contentSkip to conversation

2.6.18-rt7: Calculate cpu_khz for PowerPC

PATCH New Sergei Shtylyov 1 participant 1 message Nov 13, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.18-rt7: Calculate cpu_khz for PowerPC

Actually calculate PowerPC cpu_khz value for the latency tracing code.

arch/powerpc/kernel/time.c +1 -0
Index: linux-2.6/arch/powerpc/kernel/time.c
===================================================================
@@ -736,6 +736,7 @@ void __init time_init(void)
 	tb_ticks_per_jiffy = ppc_tb_freq / HZ;
 	tb_ticks_per_sec = ppc_tb_freq;
 	tb_ticks_per_usec = ppc_tb_freq / 1000000;
+	cpu_khz  = ppc_tb_freq / 1000;
 	tb_to_us = mulhwu_scale_factor(ppc_tb_freq, 1000000);
 	calc_cputime_factors();