diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2008-02-26 02:20:01 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:50 -0400 |
commit | d32de19ca9076eeed1e9bfd678e550fbad437535 (patch) | |
tree | 16e20e1fa05c961b628ebc39b3c4fd96768602ed /arch | |
parent | 4edbfa789b32bebf0b7fb71d5b2913a91ac4d0b1 (diff) |
x86: remove wrong setting about CONSTANT_TSC for intel cpu
early_init_intel() on 64-bit is introduced by
commit 2b16a2353814a513cdb5c5c739b76a19d7ea39ce
Author: Andi Kleen <ak@suse.de>
Date: Wed Jan 30 13:32:40 2008 +0100
x86: move X86_FEATURE_CONSTANT_TSC into early cpu feature detection
sets CONSTANT_TSC for intel cpus - but it is already set in init_intel().
don't need to set that two times in early_init_intel() and init_intel().
this patch removes the init_intel() one.
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/setup_64.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index e3cb3ea96ca1..164200257b68 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -866,9 +866,6 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c) | |||
866 | 866 | ||
867 | if (c->x86 == 15) | 867 | if (c->x86 == 15) |
868 | c->x86_cache_alignment = c->x86_clflush_size * 2; | 868 | c->x86_cache_alignment = c->x86_clflush_size * 2; |
869 | if ((c->x86 == 0xf && c->x86_model >= 0x03) || | ||
870 | (c->x86 == 0x6 && c->x86_model >= 0x0e)) | ||
871 | set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); | ||
872 | if (c->x86 == 6) | 869 | if (c->x86 == 6) |
873 | set_cpu_cap(c, X86_FEATURE_REP_GOOD); | 870 | set_cpu_cap(c, X86_FEATURE_REP_GOOD); |
874 | set_cpu_cap(c, X86_FEATURE_LFENCE_RDTSC); | 871 | set_cpu_cap(c, X86_FEATURE_LFENCE_RDTSC); |