[PATCH] Fix SRAT for non dual core AMD systems
authorAndi Kleen <ak@suse.de>
Mon, 8 Aug 2005 16:47:19 +0000 (18:47 +0200)
committerChris Wright <chrisw@osdl.org>
Mon, 15 Aug 2005 00:20:08 +0000 (17:20 -0700)
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 <ak@suse.de>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/kernel/setup.c

index 99f038ede23c323d98eca770b17344f4bc97838d..6c4caed19b6b227d223bdded94c2a4f3e5828571 100644 (file)
@@ -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)