diff options
author | Andi Kleen <ak@suse.de> | 2006-01-11 16:45:15 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:04:57 -0500 |
commit | 737c5c3bde5641af9c24e3a60366674af72a43ef (patch) | |
tree | e369c6489279c9fda4a5fb1766fe1966ce9caf87 /arch/x86_64/kernel/smpboot.c | |
parent | 3c0217511313a46039137d2dab30fdb1c5a65e64 (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/smpboot.c')
-rw-r--r-- | arch/x86_64/kernel/smpboot.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c index e6af93b51dce..994728564d6b 100644 --- a/arch/x86_64/kernel/smpboot.c +++ b/arch/x86_64/kernel/smpboot.c | |||
@@ -335,7 +335,13 @@ static __cpuinit void sync_tsc(unsigned int master) | |||
335 | 335 | ||
336 | static void __cpuinit tsc_sync_wait(void) | 336 | static void __cpuinit tsc_sync_wait(void) |
337 | { | 337 | { |
338 | if (notscsync || !cpu_has_tsc) | 338 | /* |
339 | * When the CPU has synchronized TSCs assume the BIOS | ||
340 | * or the hardware already synced. Otherwise we could | ||
341 | * mess up a possible perfect synchronization with a | ||
342 | * not-quite-perfect algorithm. | ||
343 | */ | ||
344 | if (notscsync || !cpu_has_tsc || !unsynchronized_tsc()) | ||
339 | return; | 345 | return; |
340 | sync_tsc(0); | 346 | sync_tsc(0); |
341 | } | 347 | } |