Skip to content

Commit

Permalink
[PATCH] i386: Remove bogus special case code from AMD core parsing
Browse files Browse the repository at this point in the history
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 <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Apr 11, 2006
1 parent e4cff6a commit 3d8a4d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/i386/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d8a4d7

Please sign in to comment.