]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/cpu: Remove unnecessary MwAIT leaf checks
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 13 Dec 2024 20:50:30 +0000 (12:50 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 18 Dec 2024 14:17:30 +0000 (06:17 -0800)
commit262fba55708b60a063b30d103963477dc5026f8c
treeb591a6e4989bc5252366cd9bc2c837f858c6e237
parent8bd6821c9cf3b81d3c07a94fa4e3f97a3cc7b724
x86/cpu: Remove unnecessary MwAIT leaf checks

The CPUID leaf dependency checker will remove X86_FEATURE_MWAIT if
the CPUID level is below the required level (CPUID_MWAIT_LEAF).
Thus, if you check X86_FEATURE_MWAIT you do not need to also
check the CPUID level.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20241213205030.9B42B458%40davehans-spike.ostc.intel.com
arch/x86/kernel/hpet.c
arch/x86/kernel/smpboot.c
drivers/acpi/acpi_pad.c
drivers/idle/intel_idle.c