aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/time.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-01-11 16:45:15 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-11 22:04:57 -0500
commit737c5c3bde5641af9c24e3a60366674af72a43ef (patch)
treee369c6489279c9fda4a5fb1766fe1966ce9caf87 /arch/x86_64/kernel/time.c
parent3c0217511313a46039137d2dab30fdb1c5a65e64 (diff)
[PATCH] x86_64: Don't try to synchronize the TSC over CPUs on Intel CPUs at boot.
They already do this in hardware and the Linux algorithm actually adds errors. Cc: mingo@elte.hu Cc: rohit.seth@intel.com Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/time.c')
-rw-r--r--arch/x86_64/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/time.c b/arch/x86_64/kernel/time.c
index 211bf0e51d9d..f8d4b69388d2 100644
--- a/arch/x86_64/kernel/time.c
+++ b/arch/x86_64/kernel/time.c
@@ -953,7 +953,7 @@ void __init time_init(void)
953 * Make an educated guess if the TSC is trustworthy and synchronized 953 * Make an educated guess if the TSC is trustworthy and synchronized
954 * over all CPUs. 954 * over all CPUs.
955 */ 955 */
956static __init int unsynchronized_tsc(void) 956__init int unsynchronized_tsc(void)
957{ 957{
958#ifdef CONFIG_SMP 958#ifdef CONFIG_SMP
959 if (oem_force_hpet_timer()) 959 if (oem_force_hpet_timer())
@@ -964,7 +964,7 @@ static __init int unsynchronized_tsc(void)
964 return 0; 964 return 0;
965#endif 965#endif
966 /* Assume multi socket systems are not synchronized */ 966 /* Assume multi socket systems are not synchronized */
967 return num_online_cpus() > 1; 967 return num_present_cpus() > 1;
968} 968}
969 969
970/* 970/*