[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-d9fadd7ba99a67030783a212bcb17d11f0678433@git.kernel.org>
Date: Sun, 5 Sep 2010 13:05:41 GMT
From: tip-bot for Andreas Herrmann <andreas.herrmann3@....com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
andi@...stfloor.org, andreas.herrmann3@....com, tglx@...utronix.de,
mingo@...e.hu
Subject: [tip:x86/cpu] x86, AMD: Remove needless CPU family check (for L3 cache info)
Commit-ID: d9fadd7ba99a67030783a212bcb17d11f0678433
Gitweb: http://git.kernel.org/tip/d9fadd7ba99a67030783a212bcb17d11f0678433
Author: Andreas Herrmann <andreas.herrmann3@....com>
AuthorDate: Thu, 2 Sep 2010 15:37:10 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sun, 5 Sep 2010 14:33:48 +0200
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 67cddd94799 ("i386: Add L3 cache
support to AMD CPUID4 emulation"). The current check is the
result of the x86 merge.
Signed-off-by: Andreas Herrmann <andreas.herrmann3@....com>
Cc: Andi Kleen <andi@...stfloor.org>
LKML-Reference: <20100902133710.GA5449@...e.amd.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/kernel/cpu/amd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index fc563fa..0f0ace5 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -540,7 +540,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
#endif
if (c->extended_cpuid_level >= 0x80000006) {
- if ((c->x86 >= 0x0f) && (cpuid_edx(0x80000006) & 0xf000))
+ if (cpuid_edx(0x80000006) & 0xf000)
num_cache_leaves = 4;
else
num_cache_leaves = 3;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists