[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241030213327.E04359C9@davehans-spike.ostc.intel.com>
Date: Wed, 30 Oct 2024 14:33:27 -0700
From: Dave Hansen <dave.hansen@...ux.intel.com>
To: linux-kernel@...r.kernel.org
Cc: x86@...nel.org,tglx@...utronix.de,bp@...en8.de,rafael@...nel.org,lenb@...nel.org,Dave Hansen <dave.hansen@...ux.intel.com>
Subject: [PATCH 10/11] x86/fpu: Remove unnecessary CPUID level check
From: Dave Hansen <dave.hansen@...ux.intel.com>
The CPUID level dependency table will entirely zap X86_FEATURE_XSAVE
if the CPUID level is too low. This code is unreachable. Kill it.
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
---
b/arch/x86/kernel/fpu/xstate.c | 5 -----
1 file changed, 5 deletions(-)
diff -puN arch/x86/kernel/fpu/xstate.c~xsave-leaf-checks-2 arch/x86/kernel/fpu/xstate.c
--- a/arch/x86/kernel/fpu/xstate.c~xsave-leaf-checks-2 2024-10-30 12:26:58.838215576 -0700
+++ b/arch/x86/kernel/fpu/xstate.c 2024-10-30 12:26:58.842215584 -0700
@@ -764,11 +764,6 @@ void __init fpu__init_system_xstate(unsi
return;
}
- if (boot_cpu_data.cpuid_level < XSTATE_CPUID) {
- WARN_ON_FPU(1);
- return;
- }
-
/*
* Find user xstates supported by the processor.
*/
_
Powered by blists - more mailing lists