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:
693d92a
)
x86, cpufeature: Fix cpuid leaf 7 feature detection
author
Fenghua Yu
<
[email protected]
>
Tue, 17 May 2011 19:33:26 +0000
(12:33 -0700)
committer
H. Peter Anvin
<
[email protected]
>
Tue, 17 May 2011 20:36:29 +0000
(13:36 -0700)
CPUID leaf 7, subleaf 0 returns the maximum subleaf in EAX, not the
number of subleaves. Since so far only subleaf 0 is defined (and only
the EBX bitfield) we do not need to qualify the test.
Signed-off-by: Fenghua Yu <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: H. Peter Anvin <
[email protected]
>
Cc: <
[email protected]
> 2.6.36..39
arch/x86/kernel/cpu/common.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/common.c
b/arch/x86/kernel/cpu/common.c
index e2ced0074a45c1ffee1eeb1a7e8d56657824847f..173f3a3fa1a63dcacc5c1aec67341e5f19f118f6 100644
(file)
--- a/
arch/x86/kernel/cpu/common.c
+++ b/
arch/x86/kernel/cpu/common.c
@@
-565,8
+565,7
@@
void __cpuinit get_cpu_cap(struct cpuinfo_x86 *c)
cpuid_count(0x00000007, 0, &eax, &ebx, &ecx, &edx);
- if (eax > 0)
- c->x86_capability[9] = ebx;
+ c->x86_capability[9] = ebx;
}
/* AMD-defined flags: level 0x80000001 */