From: Andi Kleen Date: Mon, 8 Aug 2005 16:47:19 +0000 (+0200) Subject: [PATCH] Fix SRAT for non dual core AMD systems X-Git-Tag: v2.6.12.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4491f6fe1c32fc8de79ceb3b57e90647aaca8cdb;p=thirdparty%2Fkernel%2Fstable.git [PATCH] Fix SRAT for non dual core AMD systems Patch for 2.6.12-STABLE This fixes a bug in SRAT handling on AMD systems that was introduced with the dual core support. It would be disabled on CPUs without dual core. Just drop the bogus check. Signed-off-by: Andi Kleen Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 99f038ede23c3..6c4caed19b6b2 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -729,8 +729,6 @@ static void __init amd_detect_cmp(struct cpuinfo_x86 *c) int cpu = smp_processor_id(); int node = 0; unsigned bits; - if (c->x86_num_cores == 1) - return; bits = 0; while ((1 << bits) < c->x86_num_cores)