projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4cff6a
)
[PATCH] i386: Remove bogus special case code from AMD core parsing
author
Andi Kleen
<ak@suse.de>
Tue, 11 Apr 2006 10:54:45 +0000
(12:54 +0200)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:38:57 +0000
(06:38 -0700)
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>
arch/i386/kernel/cpu/amd.c
patch
|
blob
|
history
diff --git
a/arch/i386/kernel/cpu/amd.c
b/arch/i386/kernel/cpu/amd.c
index 0810f81f2a05d154cf0bc8bcd4885129eef831d8..ff2b2154ac1b6c8a0e4bddec0d27319575f47933 100644
(file)
--- 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) {