From: Andi Kleen Date: Sat, 25 Mar 2006 15:31:49 +0000 (+0100) Subject: [PATCH] x86_64: Remove bogus special case in AMD core parsing. X-Git-Tag: MMI-PSA29.97-13-9~51090 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0085979006fd55ec7c2f721bdaa9af130a08d62a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] x86_64: Remove bogus special case in AMD core parsing. No need to restrict to power of two here. TBD needs more double checking Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index db70090a08f7..a57eec8311a7 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -946,8 +946,6 @@ static int __init init_amd(struct cpuinfo_x86 *c) if (c->extended_cpuid_level >= 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; amd_detect_cmp(c); }