aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDave Hansen <dave.hansen@linux.intel.com>2024-12-13 12:50:38 -0800
committerDave Hansen <dave.hansen@linux.intel.com>2024-12-18 06:17:45 -0800
commit588e148d8babeb2fd863fb152b80548e18971caf (patch)
treecb890fea074955e68db98d664c1668cb1b928f4d
parentx86/fpu: Move CPUID leaf definitions to common code (diff)
downloadwireguard-linux-588e148d8babeb2fd863fb152b80548e18971caf.tar.xz
wireguard-linux-588e148d8babeb2fd863fb152b80548e18971caf.zip
x86/fpu: Remove unnecessary CPUID level check
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@linux.intel.com> Reviewed-by: Chang S. Bae <chang.seok.bae@intel.com> Link: https://lore.kernel.org/all/20241213205038.6E71F9A4%40davehans-spike.ostc.intel.com
-rw-r--r--arch/x86/kernel/fpu/xstate.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c
index bf38b3e75425..edacd34c1a22 100644
--- a/arch/x86/kernel/fpu/xstate.c
+++ b/arch/x86/kernel/fpu/xstate.c
@@ -764,11 +764,6 @@ void __init fpu__init_system_xstate(unsigned int legacy_size)
return;
}
- if (boot_cpu_data.cpuid_level < XSTATE_CPUID) {
- WARN_ON_FPU(1);
- return;
- }
-
/*
* Find user xstates supported by the processor.
*/