aboutsummaryrefslogtreecommitdiffstats
path: root/tools/arch
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwi@linutronix.de>2025-03-24 15:20:28 +0100
committerIngo Molnar <mingo@kernel.org>2025-03-25 09:53:45 +0100
commit2b383ca0896f0ffc24fd4d93440320d2dd5daad1 (patch)
treee77a19ca08c7da3814975e770b6b815d1d8647a8 /tools/arch
parenttools/x86/kcpuid: Remove unused local variable (diff)
downloadlinux-2b383ca0896f0ffc24fd4d93440320d2dd5daad1.tar.gz
linux-2b383ca0896f0ffc24fd4d93440320d2dd5daad1.zip
tools/x86/kcpuid: Remove unused global variable
The global variable "is_amd" is written to, but is not read from anywhere. Remove it. Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20250324142042.29010-8-darwi@linutronix.de
Diffstat (limited to 'tools/arch')
-rw-r--r--tools/arch/x86/kcpuid/kcpuid.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/arch/x86/kcpuid/kcpuid.c b/tools/arch/x86/kcpuid/kcpuid.c
index f1dac5bee515..f268c768d023 100644
--- a/tools/arch/x86/kcpuid/kcpuid.c
+++ b/tools/arch/x86/kcpuid/kcpuid.c
@@ -79,7 +79,6 @@ struct cpuid_range {
*/
struct cpuid_range *leafs_basic, *leafs_ext;
-static bool is_amd;
static bool show_details;
static bool show_raw;
static bool show_flags_only = true;
@@ -559,16 +558,6 @@ static void show_info(void)
static void setup_platform_cpuid(void)
{
- u32 eax, ebx, ecx, edx;
-
- /* Check vendor */
- eax = ebx = ecx = edx = 0;
- cpuid(&eax, &ebx, &ecx, &edx);
-
- /* "htuA" */
- if (ebx == 0x68747541)
- is_amd = true;
-
/* Setup leafs for the basic and extended range */
leafs_basic = setup_cpuid_range(0x0);
leafs_ext = setup_cpuid_range(0x80000000);