x86/amd: Rename amd_get_highest_perf() to amd_get_boost_ratio_numerator()
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 26 Aug 2024 21:13:52 +0000 (16:13 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Sep 2024 15:23:22 +0000 (10:23 -0500)
commit6c09e3b445a1a647a5b57ea6afd23e846225dd8f
tree3c1c181ecfe88232dc64b214421360c87cca571c
parent01ced022e125f7b328335bb2944a107afcafe351
x86/amd: Rename amd_get_highest_perf() to amd_get_boost_ratio_numerator()

The function name is ambiguous because it returns an intermediate value
for calculating maximum frequency rather than the CPPC 'Highest Perf'
register.

Rename the function to clarify its use and allow the function to return
errors. Adjust the consumer in acpi-cpufreq to catch errors.

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