Skip to content

Commit

Permalink
x86/fpu: Remove unnecessary CPUID level check
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dave Hansen committed Dec 18, 2024
1 parent 754aaac commit 588e148
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/x86/kernel/fpu/xstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 588e148

Please sign in to comment.