From 4491f6fe1c32fc8de79ceb3b57e90647aaca8cdb Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Mon, 8 Aug 2005 18:47:19 +0200 Subject: [PATCH] [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 --- arch/x86_64/kernel/setup.c | 2 -- 1 file changed, 2 deletions(-) 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) -- 2.47.2