]> git.ipfire.org Git - thirdparty/linux.git/commit
cpufreq/amd-pstate: Drop min and max cached frequencies
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 23 Jan 2025 22:16:01 +0000 (16:16 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 6 Mar 2025 19:01:24 +0000 (13:01 -0600)
commita9b9b4c2a4cdd00428d14914e3c18be3856aba71
tree2ca114168af4c0a37fe32ac9e1a969aeb6a12c0c
parenta9ba0fd452d82ca0da170eb6291aac01075a17d5
cpufreq/amd-pstate: Drop min and max cached frequencies

Use the perf_to_freq helpers to calculate this on the fly.
As the members are no longer cached add an extra check into
amd_pstate_epp_update_limit() to avoid unnecessary calls in
amd_pstate_update_min_max_limit().

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate-ut.c
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/amd-pstate.h