]> git.hungrycats.org Git - linux/commitdiff
[PATCH] x86-64: Fix C3 timer test
authorAndi Kleen <ak@suse.de>
Sun, 22 Oct 2006 00:59:04 +0000 (00:59 +0000)
committerChris Wright <chrisw@sous-sol.org>
Sat, 4 Nov 2006 01:33:48 +0000 (17:33 -0800)
There was a typo in the C3 latency test to decide of the TSC
should be used or not. It used the C2 latency threshold, not the
C3 one. Fix that.

This should fix the time on various dual core laptops.

Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/x86_64/kernel/time.c

index 7a9b18224182ced7cd0932b2691249c69f70e4ad..ffd1cb88fa75fa69b8c80fe716f06b02dccb58f0 100644 (file)
@@ -960,7 +960,7 @@ __cpuinit int unsynchronized_tsc(void)
        if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) {
 #ifdef CONFIG_ACPI
                /* But TSC doesn't tick in C3 so don't use it there */
-               if (acpi_fadt.length > 0 && acpi_fadt.plvl3_lat < 100)
+               if (acpi_fadt.length > 0 && acpi_fadt.plvl3_lat < 1000)
                        return 1;
 #endif
                return 0;