From: Andi Kleen Fix UP compilation Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton --- 25-akpm/arch/x86_64/kernel/setup.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN arch/x86_64/kernel/setup.c~x86_64-final-support-for-amd-dual-core-fix-fix-fix arch/x86_64/kernel/setup.c --- 25/arch/x86_64/kernel/setup.c~x86_64-final-support-for-amd-dual-core-fix-fix-fix 2005-04-10 15:30:28.000000000 -0700 +++ 25-akpm/arch/x86_64/kernel/setup.c 2005-04-10 15:30:28.000000000 -0700 @@ -722,6 +722,7 @@ static void __init display_cacheinfo(str */ static void __init amd_detect_cmp(struct cpuinfo_x86 *c) { +#ifdef CONFIG_SMP int cpu = c->x86_apicid; int node = 0; if (c->x86_num_cores == 1) @@ -742,6 +743,7 @@ static void __init amd_detect_cmp(struct #endif printk(KERN_INFO "CPU %d(%d) -> Node %d -> Core %d\n", cpu, c->x86_num_cores, node, cpu_core_id[cpu]); +#endif } #else static void __init amd_detect_cmp(struct cpuinfo_x86 *c) _