* [PATCH] [4/7] i386: Remove bogus special case code from AMD core parsing
@ 2006-04-11 10:54 Andi Kleen
0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2006-04-11 10:54 UTC (permalink / raw)
To: torvalds; +Cc: discuss, akpm, linux-kernel
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>
---
arch/i386/kernel/cpu/amd.c | 2 --
1 files changed, 2 deletions(-)
Index: linux/arch/i386/kernel/cpu/amd.c
===================================================================
--- linux.orig/arch/i386/kernel/cpu/amd.c
+++ 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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-11 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 10:54 [PATCH] [4/7] i386: Remove bogus special case code from AMD core parsing Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox