提交 d9fadd7b 编写于 作者: A Andreas Herrmann 提交者: Ingo Molnar

x86, AMD: Remove needless CPU family check (for L3 cache info)

Old 32-bit AMD CPUs (all w/o L3 cache) should always return 0
for cpuid_edx(0x80000006).

For unknown reason the 32-bit implementation differed from the
64-bit implementation. See commit 67cddd94 ("i386: Add L3 cache
support to AMD CPUID4 emulation"). The current check is the
result of the x86 merge.
Signed-off-by: NAndreas Herrmann <andreas.herrmann3@amd.com>
Cc: Andi Kleen <andi@firstfloor.org>
LKML-Reference: <20100902133710.GA5449@loge.amd.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 acf01734
...@@ -540,7 +540,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) ...@@ -540,7 +540,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
#endif #endif
if (c->extended_cpuid_level >= 0x80000006) { if (c->extended_cpuid_level >= 0x80000006) {
if ((c->x86 >= 0x0f) && (cpuid_edx(0x80000006) & 0xf000)) if (cpuid_edx(0x80000006) & 0xf000)
num_cache_leaves = 4; num_cache_leaves = 4;
else else
num_cache_leaves = 3; num_cache_leaves = 3;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册