]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/time_64.c
x86: use cpu_khz for loops_per_jiffy calculation
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / time_64.c
index c737849e2ef7a46b66cce8bc63e230d5a4200da8..12b4a71bd0748555cac1d552fe96cc8d8e2c19c3 100644 (file)
@@ -123,6 +123,8 @@ void __init time_init(void)
                (boot_cpu_data.x86_vendor == X86_VENDOR_AMD))
                cpu_khz = calculate_cpu_khz();
 
+       lpj_tsc = ((unsigned long)tsc_khz * 1000)/HZ;
+
        if (unsynchronized_tsc())
                mark_tsc_unstable("TSCs unsynchronized");