aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/vmitime.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/vmitime.c')
-rw-r--r--arch/i386/kernel/vmitime.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/i386/kernel/vmitime.c b/arch/i386/kernel/vmitime.c
index f2aa8fab8c02..4bb218e2eb14 100644
--- a/arch/i386/kernel/vmitime.c
+++ b/arch/i386/kernel/vmitime.c
@@ -177,6 +177,15 @@ unsigned long long vmi_get_sched_cycles(void)
177 return read_available_cycles(); 177 return read_available_cycles();
178} 178}
179 179
180unsigned long vmi_cpu_khz(void)
181{
182 unsigned long long khz;
183
184 khz = vmi_timer_ops.get_cycle_frequency();
185 (void)do_div(khz, 1000);
186 return khz;
187}
188
180void __init vmi_time_init(void) 189void __init vmi_time_init(void)
181{ 190{
182 unsigned long long cycles_per_sec, cycles_per_msec; 191 unsigned long long cycles_per_sec, cycles_per_msec;
@@ -206,7 +215,6 @@ void __init vmi_time_init(void)
206 (void)do_div(cycles_per_alarm, alarm_hz); 215 (void)do_div(cycles_per_alarm, alarm_hz);
207 cycles_per_msec = cycles_per_sec; 216 cycles_per_msec = cycles_per_sec;
208 (void)do_div(cycles_per_msec, 1000); 217 (void)do_div(cycles_per_msec, 1000);
209 cpu_khz = cycles_per_msec;
210 218
211 printk(KERN_WARNING "VMI timer cycles/sec = %llu ; cycles/jiffy = %llu ;" 219 printk(KERN_WARNING "VMI timer cycles/sec = %llu ; cycles/jiffy = %llu ;"
212 "cycles/alarm = %llu\n", cycles_per_sec, cycles_per_jiffy, 220 "cycles/alarm = %llu\n", cycles_per_sec, cycles_per_jiffy,