Skip to contentSkip to conversation

i386: Remove bogus special case code from AMD core parsing

PATCH New Andi Kleen 1 participant 1 message Apr 11, 2006

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 4/7 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.

---
 arch/i386/kernel/cpu/amd.c |    2 --
 1 files changed, 2 deletions(-)
arch/i386/kernel/cpu/amd.c +0 -2
Index: linux/arch/i386/kernel/cpu/amd.c
===================================================================
@@ -212,8 +212,6 @@ static void __init init_amd(struct cpuin
 
 	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) {