From: Andi Kleen Date: Tue, 11 Apr 2006 10:54:45 +0000 (+0200) Subject: [PATCH] i386: Remove bogus special case code from AMD core parsing X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3d8a4d795cc1ffa6be5371629ca6c3431af4c2d5;p=openwrt%2Fstaging%2Fblogic.git [PATCH] i386: Remove bogus special case code from AMD core parsing It's not actually needed and would break non power of two number of cores. Follows similar earlier x86-64 patch. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/cpu/amd.c b/arch/i386/kernel/cpu/amd.c index 0810f81f2a05..ff2b2154ac1b 100644 --- a/arch/i386/kernel/cpu/amd.c +++ b/arch/i386/kernel/cpu/amd.c @@ -212,8 +212,6 @@ static void __init init_amd(struct cpuinfo_x86 *c) if (cpuid_eax(0x80000000) >= 0x80000008) { c->x86_max_cores = (cpuid_ecx(0x80000008) & 0xff) + 1; - if (c->x86_max_cores & (c->x86_max_cores - 1)) - c->x86_max_cores = 1; } if (cpuid_eax(0x80000000) >= 0x80000007) {