aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/tsc_64.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-30 07:32:41 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:32:41 -0500
commit32c7553f824d0d76771404f0e11d6059f82e8de7 (patch)
tree12803c3426871f487652b225358a2c0ed7492989 /arch/x86/kernel/tsc_64.c
parent51fc97b93545e71cec578d6771bceeb92bc2d50b (diff)
x86: remove explicit C3 TSC check on 64bit
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>
Diffstat (limited to 'arch/x86/kernel/tsc_64.c')
-rw-r--r--arch/x86/kernel/tsc_64.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/kernel/tsc_64.c b/arch/x86/kernel/tsc_64.c
index 322b38c68198..c62f3b6eacc0 100644
--- a/arch/x86/kernel/tsc_64.c
+++ b/arch/x86/kernel/tsc_64.c
@@ -273,15 +273,8 @@ __cpuinit int unsynchronized_tsc(void)
273 return 1; 273 return 1;
274#endif 274#endif
275 275
276 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) { 276 if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC))
277#ifdef CONFIG_ACPI
278 /* But TSC doesn't tick in C3 so don't use it there */
279 if (acpi_gbl_FADT.header.length > 0 &&
280 acpi_gbl_FADT.C3latency < 1000)
281 return 1;
282#endif
283 return 0; 277 return 0;
284 }
285 278
286 /* Assume multi socket systems are not synchronized */ 279 /* Assume multi socket systems are not synchronized */
287 return num_present_cpus() > 1; 280 return num_present_cpus() > 1;