]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Use amd_pstate_update_min_max_limit() for EPP limits
authorMario Limonciello <mario.limonciello@amd.com>
Sat, 12 Oct 2024 17:45:18 +0000 (12:45 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 28 Oct 2024 19:54:35 +0000 (14:54 -0500)
commit047a2d0c83a425e83aa58b43c2557c42fdd0af29
treecb6b1f602472ac2fb123dfb723f1e43b23432612
parent67c08d303e0a1a5665b3f198037c9fae2d808090
cpufreq/amd-pstate: Use amd_pstate_update_min_max_limit() for EPP limits

When the EPP updates are set the maximum capable frequency for the
CPU is used to set the upper limit instead of that of the policy.

Adjust amd_pstate_epp_update_limit() to reuse policy calculation code
from amd_pstate_update_min_max_limit().

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Tested-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Link: https://lore.kernel.org/r/20241012174519.897-3-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c