cpufreq/amd-pstate: Move limit updating code
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 18:52:43 +0000 (12:52 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Dec 2024 16:44:53 +0000 (10:44 -0600)
commit3f7b835fa4d0d06f82249a3aca989fdf9bdf4656
tree43d9f8cf1fb26e4c427ee543466735b63a15f683
parent942718f2a236cb3b27d2dbb5942538681b6e0e88
cpufreq/amd-pstate: Move limit updating code

The limit updating code in amd_pstate_epp_update_limit() should not
only apply to EPP updates.  Move it to amd_pstate_update_min_max_limit()
so other callers can benefit as well.

With this move it's not necessary to have clamp_t calls anymore because
the verify callback is called when setting limits.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241209185248.16301-11-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c