]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: remove explicit C3 TSC check on 64bit
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:32:41 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:41 +0000 (13:32 +0100)
Trust the ACPI code to disable TSC instead when C3 is used.

AMD Fam10h does not disable TSC in any C states so the
check was incorrect there anyways after the change
to handle this like Intel on AMD too.

This allows to use the TSC when C3 is disabled in software
(acpi.max_c_state=2), but the BIOS supports it anyways.

Match i386 behaviour.

Cc: lenb@kernel.org
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc_64.c

index 322b38c6819856fe6c1054644210eb1bfa6e4cbb..c62f3b6eacc090e6408361a2f78eb10121cfe94a 100644 (file)
@@ -273,15 +273,8 @@ __cpuinit int unsynchronized_tsc(void)
                return 1;
 #endif
 
-       if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) {
-#ifdef CONFIG_ACPI
-               /* But TSC doesn't tick in C3 so don't use it there */
-               if (acpi_gbl_FADT.header.length > 0 &&
-                   acpi_gbl_FADT.C3latency < 1000)
-                       return 1;
-#endif
+       if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC))
                return 0;
-       }
 
        /* Assume multi socket systems are not synchronized */
        return num_present_cpus() > 1;