mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
x86/acpi/cstate: Remove open coded check for cpu_feature_enabled()
acpi_processor_power_init_bm_check() has an open coded implementation of cpu_feature_enabled() to detect X86_FEATURE_ZEN. Switch to using cpu_feature_enabled(). Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
07e27ad163
commit
5b87014e99
@@ -89,7 +89,7 @@ void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags,
|
||||
*/
|
||||
flags->bm_control = 0;
|
||||
}
|
||||
if (c->x86_vendor == X86_VENDOR_AMD && c->x86 >= 0x17) {
|
||||
if (cpu_feature_enabled(X86_FEATURE_ZEN)) {
|
||||
/*
|
||||
* For all AMD Zen or newer CPUs that support C3, caches
|
||||
* should not be flushed by software while entering C3
|
||||
|
||||
Reference in New Issue
Block a user