]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Use boost numerator for upper bound of frequencies
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 18:52:35 +0000 (12:52 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Tue, 10 Dec 2024 16:17:43 +0000 (10:17 -0600)
commit2993b29b2a98f2bc9d55dfd37ef39f56a2908748
tree2f7225747cbfc8fabc64e96a819c38f4c5ba0719
parent50a062a7620051c09adacd6d140ebd56881a333b
cpufreq/amd-pstate: Use boost numerator for upper bound of frequencies

commit 18d9b5227121 ("cpufreq/amd-pstate: Use nominal perf for limits
when boost is disabled") introduced different semantics for min/max limits
based upon whether the user turned off boost from sysfs.

This however is not necessary when the highest perf value is the boost
numerator.

Suggested-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Fixes: 18d9b5227121 ("cpufreq/amd-pstate: Use nominal perf for limits when boost is disabled")
Link: https://lore.kernel.org/r/20241209185248.16301-3-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c