From: Chris Wright Date: Mon, 8 Aug 2005 16:59:33 +0000 (-0700) Subject: Fix SRAT for non dual core AMD systems, from Andi. X-Git-Tag: v2.6.12.4~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=985af8b43a0576dbec81da0f49cb5dad9ed0aabc;p=thirdparty%2Fkernel%2Fstable-queue.git Fix SRAT for non dual core AMD systems, from Andi. --- diff --git a/queue/series b/queue/series index 39e2b8aff7c..ae6fa976170 100644 --- a/queue/series +++ b/queue/series @@ -1 +1,2 @@ sys_set_mempolicy-mode-check.patch +x86_64-srat-dual-core-amd.patch diff --git a/queue/x86_64-srat-dual-core-amd.patch b/queue/x86_64-srat-dual-core-amd.patch new file mode 100644 index 00000000000..56401d87888 --- /dev/null +++ b/queue/x86_64-srat-dual-core-amd.patch @@ -0,0 +1,29 @@ +From stable-bounces@linux.kernel.org Mon Aug 8 09:47:43 2005 +Date: Mon, 8 Aug 2005 18:47:19 +0200 +From: Andi Kleen +To: stable@kernel.org, discuss@x86-64.org +Subject: [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 + +Index: linux-2.6.12/arch/x86_64/kernel/setup.c +=================================================================== +--- linux-2.6.12.orig/arch/x86_64/kernel/setup.c ++++ linux-2.6.12/arch/x86_64/kernel/setup.c +@@ -729,8 +729,6 @@ static void __init amd_detect_cmp(struct + 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) +