]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: amd-pstate: switch boot_cpu_has() to cpu_feature_enabled()
authorPerry Yuan <perry.yuan@amd.com>
Wed, 19 Jun 2024 15:40:17 +0000 (23:40 +0800)
committerMario Limonciello <mario.limonciello@amd.com>
Fri, 21 Jun 2024 02:52:05 +0000 (21:52 -0500)
commitc9fdaba8369ea6ca01728ed9c25c6ca1b90d3355
treeed1d7df3aad7bbb0472ebe7f0473ca99b2535902
parent1d53f30b3aa6120ca91789254cb2dfff9ff8c533
cpufreq: amd-pstate: switch boot_cpu_has() to cpu_feature_enabled()

replace the usage of the deprecated boot_cpu_has() function with
the modern cpu_feature_enabled() function. The switch to cpu_feature_enabled()
ensures compatibility with the latest CPU feature detection mechanisms and
improves code maintainability.

Acked-by: Mario Limonciello <mario.limonciello@amd.com>
Suggested-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/f1567593ac5e1d38343067e9c681a8c4b0707038.1718811234.git.perry.yuan@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c