]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/amd: Move amd_get_highest_perf() out of amd-pstate
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 26 Aug 2024 21:13:54 +0000 (16:13 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Sep 2024 15:23:23 +0000 (10:23 -0500)
commit2819bfef6483c66c55064ca678f2630a1a09f3f9
tree936d4b332a287f1cc8619b549801092546260a04
parent21fb59ab4b9767085f4fe1edbdbe3177fbb9ec97
x86/amd: Move amd_get_highest_perf() out of amd-pstate

amd_pstate_get_highest_perf() is a helper used to get the highest perf
value on AMD systems.  It's used in amd-pstate as part of preferred
core handling, but applicable for acpi-cpufreq as well.

Move it out to cppc handling code as amd_get_highest_perf().

Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
arch/x86/kernel/acpi/cppc.c
drivers/cpufreq/amd-pstate.c
include/acpi/cppc_acpi.h