diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-09-04 23:08:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 03:40:45 -0400 |
commit | 97e4db7c8719f67c52793eeca5ec4df4c3407f2a (patch) | |
tree | f60e552c99e8c57d13123d523a09acb634a710c2 | |
parent | 0c8c708a7e6b52556ee9079041f504191ec5f0e9 (diff) |
x86: make detect_ht depend on CONFIG_X86_HT
64-bit has X86_HT set too, so use that instead of SMP.
This also removes a include/asm-x86/processor.h ifdef.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/common_64.c | 2 | ||||
-rw-r--r-- | include/asm-x86/processor.h | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 7d5a07f0fd24..1f80ce07daa2 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -263,9 +263,9 @@ void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c) | |||
263 | l2size, ecx & 0xFF); | 263 | l2size, ecx & 0xFF); |
264 | } | 264 | } |
265 | 265 | ||
266 | #ifdef CONFIG_X86_HT | ||
267 | void __cpuinit detect_ht(struct cpuinfo_x86 *c) | 266 | void __cpuinit detect_ht(struct cpuinfo_x86 *c) |
268 | { | 267 | { |
268 | #ifdef CONFIG_X86_HT | ||
269 | u32 eax, ebx, ecx, edx; | 269 | u32 eax, ebx, ecx, edx; |
270 | int index_msb, core_bits; | 270 | int index_msb, core_bits; |
271 | 271 | ||
@@ -311,8 +311,8 @@ out: | |||
311 | printk(KERN_INFO "CPU: Processor Core ID: %d\n", | 311 | printk(KERN_INFO "CPU: Processor Core ID: %d\n", |
312 | c->cpu_core_id); | 312 | c->cpu_core_id); |
313 | } | 313 | } |
314 | } | ||
315 | #endif | 314 | #endif |
315 | } | ||
316 | 316 | ||
317 | static void __cpuinit get_cpu_vendor(struct cpuinfo_x86 *c) | 317 | static void __cpuinit get_cpu_vendor(struct cpuinfo_x86 *c) |
318 | { | 318 | { |
diff --git a/arch/x86/kernel/cpu/common_64.c b/arch/x86/kernel/cpu/common_64.c index bcb48ce05d23..8e630734e1fd 100644 --- a/arch/x86/kernel/cpu/common_64.c +++ b/arch/x86/kernel/cpu/common_64.c | |||
@@ -141,7 +141,7 @@ void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c) | |||
141 | 141 | ||
142 | void __cpuinit detect_ht(struct cpuinfo_x86 *c) | 142 | void __cpuinit detect_ht(struct cpuinfo_x86 *c) |
143 | { | 143 | { |
144 | #ifdef CONFIG_SMP | 144 | #ifdef CONFIG_X86_HT |
145 | u32 eax, ebx, ecx, edx; | 145 | u32 eax, ebx, ecx, edx; |
146 | int index_msb, core_bits; | 146 | int index_msb, core_bits; |
147 | 147 | ||
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index bbbbe1fc5ce1..fc5e961c5b60 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h | |||
@@ -166,11 +166,7 @@ extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); | |||
166 | extern unsigned short num_cache_leaves; | 166 | extern unsigned short num_cache_leaves; |
167 | 167 | ||
168 | extern void detect_extended_topology(struct cpuinfo_x86 *c); | 168 | extern void detect_extended_topology(struct cpuinfo_x86 *c); |
169 | #if defined(CONFIG_X86_HT) || defined(CONFIG_X86_64) | ||
170 | extern void detect_ht(struct cpuinfo_x86 *c); | 169 | extern void detect_ht(struct cpuinfo_x86 *c); |
171 | #else | ||
172 | static inline void detect_ht(struct cpuinfo_x86 *c) {} | ||
173 | #endif | ||
174 | 170 | ||
175 | static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, | 171 | static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, |
176 | unsigned int *ecx, unsigned int *edx) | 172 | unsigned int *ecx, unsigned int *edx) |