diff options
author | Andi Kleen <ak@suse.de> | 2006-01-11 16:45:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:04:58 -0500 |
commit | c818a18146997d1356a4840b0c01f1168c16c8a4 (patch) | |
tree | 8d7e049742e87666bf3089fe46e04828b6417fd7 /arch/x86_64/kernel/setup.c | |
parent | 7f6c5b046978d68e69bdc73433ead41612a2a1c9 (diff) |
[PATCH] x86_64: On Intel CPUs don't do an additional CPU sync before RDTSC
RDTSC serialization using cpuid is not needed for Intel platforms.
This increases gettimeofday performance.
Cc: vojtech@suse.cz
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/setup.c')
-rw-r--r-- | arch/x86_64/kernel/setup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 8090a0a46882..46bf556efc30 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -1042,6 +1042,7 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c) | |||
1042 | if ((c->x86 == 0xf && c->x86_model >= 0x03) || | 1042 | if ((c->x86 == 0xf && c->x86_model >= 0x03) || |
1043 | (c->x86 == 0x6 && c->x86_model >= 0x0e)) | 1043 | (c->x86 == 0x6 && c->x86_model >= 0x0e)) |
1044 | set_bit(X86_FEATURE_CONSTANT_TSC, &c->x86_capability); | 1044 | set_bit(X86_FEATURE_CONSTANT_TSC, &c->x86_capability); |
1045 | set_bit(X86_FEATURE_SYNC_RDTSC, &c->x86_capability); | ||
1045 | c->x86_max_cores = intel_num_cpu_cores(c); | 1046 | c->x86_max_cores = intel_num_cpu_cores(c); |
1046 | 1047 | ||
1047 | srat_detect_node(); | 1048 | srat_detect_node(); |