x86: kernel/cpu/amd.c: Fix non-SMP build
Subsystems (2)
PATCH 1/1 x86: kernel/cpu/amd.c: Fix non-SMP build
Fix this build errors when CONFIG_SMP is not set
(caused by 5b7d3d4 "x86: add cpu_node topology detection for AMD Magny-Cours"):
arch/x86/kernel/cpu/amd.c: In function 'amd_fixup_dcm':arch/x86/kernel/cpu/amd.c:279: error: 'struct cpuinfo_x86' has no member named 'phys_proc_id' arch/x86/kernel/cpu/amd.c:288: error: 'struct cpuinfo_x86' has no member named 'cpu_core_id' arch/x86/kernel/cpu/amd.c:289: error: 'struct cpuinfo_x86' has no member named 'cpu_node_id' arch/x86/kernel/cpu/amd.c:291: error: 'struct cpuinfo_x86' has no member named 'cpu_node_id' arch/x86/kernel/cpu/amd.c:293: error: 'struct cpuinfo_x86' has no member named 'cpu_core_id' arch/x86/kernel/cpu/amd.c:294: error: 'struct cpuinfo_x86' has no member named 'cpu_node_id' arch/x86/kernel/cpu/amd.c:296: error: 'struct cpuinfo_x86' has no member named 'cpu_node_id' arch/x86/kernel/cpu/amd.c:300: error: 'struct cpuinfo_x86' has no member named 'cpu_core_id' arch/x86/kernel/cpu/amd.c:300: error: 'struct cpuinfo_x86' has no member named 'cpu_core_id'
--- arch/x86/kernel/cpu/amd.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kernel/cpu/amd.c +2 -0
@@ -256,6 +256,7 @@ static int __cpuinit nearby_node(int apicid)* Assumption 2: Mixed systems with both single-node and dual-node * processors are not supported. */ +#ifdef CONFIG_X86_HT static void __cpuinit amd_fixup_dcm (struct cpuinfo_x86 *c) {u32 t, cpn;
@@ -299,6 +300,7 @@ static void __cpuinit amd_fixup_dcm(struct cpuinfo_x86 *c)/* fixup core id to be in range from 0 to cpn */ c->cpu_core_id = c->cpu_core_id % cpn; } +#endif /* * On a AMD dual core setup the lower bits of the APIC id distingush the cores.
Signature · 1 line
1.6.3.3