]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/x86_64/kernel/time.c
[PATCH] x86_64: Support constantly ticking TSCs
[linux-2.6.git] / arch / x86_64 / kernel / time.c
index 3bafe438fa750025989983f6b2757e18d7776346..c7a1b50b4af34b5d919a82711f3354ed67137508 100644 (file)
@@ -614,6 +614,9 @@ static int time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
         struct cpufreq_freqs *freq = data;
        unsigned long *lpj, dummy;
 
+       if (cpu_has(&cpu_data[freq->cpu], X86_FEATURE_CONSTANT_TSC))
+               return 0;
+
        lpj = &dummy;
        if (!(freq->flags & CPUFREQ_CONST_LOOPS))
 #ifdef CONFIG_SMP
@@ -622,8 +625,6 @@ static int time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
        lpj = &boot_cpu_data.loops_per_jiffy;
 #endif
 
-
-
        if (!ref_freq) {
                ref_freq = freq->old;
                loops_per_jiffy_ref = *lpj;