Skip to content

Commit 588e148

Browse files
committed
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 <[email protected]> Reviewed-by: Chang S. Bae <[email protected]> Link: https://lore.kernel.org/all/20241213205038.6E71F9A4%40davehans-spike.ostc.intel.com
1 parent 754aaac commit 588e148

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/x86/kernel/fpu/xstate.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,6 @@ void __init fpu__init_system_xstate(unsigned int legacy_size)
764764
return;
765765
}
766766

767-
if (boot_cpu_data.cpuid_level < XSTATE_CPUID) {
768-
WARN_ON_FPU(1);
769-
return;
770-
}
771-
772767
/*
773768
* Find user xstates supported by the processor.
774769
*/

0 commit comments

Comments
 (0)