aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-08-23 11:47:11 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-27 03:02:19 -0400
commit11c231a962c740b3216eb6565149ae5a7944cba7 (patch)
treeb17b66f6c8e19b3bc9748bed08cb80d5bec39759 /arch/x86
parente17941b0c140562d92e5a3bc12b4ad88281c7926 (diff)
x86: use x2apic id reported by cpuid during topology discovery, fix
v2: Fix for !SMP build Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/cpu/addon_cpuid_features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
index aa9641ae6703..a2d1a545767d 100644
--- a/arch/x86/kernel/cpu/addon_cpuid_features.c
+++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
@@ -69,6 +69,7 @@ void __cpuinit init_scattered_cpuid_features(struct cpuinfo_x86 *c)
69 */ 69 */
70void __cpuinit detect_extended_topology(struct cpuinfo_x86 *c) 70void __cpuinit detect_extended_topology(struct cpuinfo_x86 *c)
71{ 71{
72#ifdef CONFIG_SMP
72 unsigned int eax, ebx, ecx, edx, sub_index; 73 unsigned int eax, ebx, ecx, edx, sub_index;
73 unsigned int ht_mask_width, core_plus_mask_width; 74 unsigned int ht_mask_width, core_plus_mask_width;
74 unsigned int core_select_mask, core_level_siblings; 75 unsigned int core_select_mask, core_level_siblings;
@@ -132,6 +133,7 @@ void __cpuinit detect_extended_topology(struct cpuinfo_x86 *c)
132 printk(KERN_INFO "CPU: Processor Core ID: %d\n", 133 printk(KERN_INFO "CPU: Processor Core ID: %d\n",
133 c->cpu_core_id); 134 c->cpu_core_id);
134 return; 135 return;
136#endif
135} 137}
136 138
137#ifdef CONFIG_X86_PAT 139#ifdef CONFIG_X86_PAT