Skip to content

Commit c5b955b

Browse files
committed
cpufreq/amd-pstate: Fix max_perf updation with schedutil
JIRA: https://issues.redhat.com/browse/RHEL-75923 commit 55db9b7 Author: Dhananjay Ugwekar <[email protected]> Date: Wed Feb 5 11:25:13 2025 +0000 cpufreq/amd-pstate: Fix max_perf updation with schedutil In adjust_perf() callback, we are setting the max_perf to highest_perf, as opposed to the correct limit value i.e. max_limit_perf. Fix that. Fixes: 3f7b835 ("cpufreq/amd-pstate: Move limit updating code") Signed-off-by: Dhananjay Ugwekar <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: David Arcari <[email protected]>
1 parent c7116af commit c5b955b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ static void amd_pstate_adjust_perf(unsigned int cpu,
699699
if (min_perf < lowest_nonlinear_perf)
700700
min_perf = lowest_nonlinear_perf;
701701

702-
max_perf = cap_perf;
702+
max_perf = cpudata->max_limit_perf;
703703
if (max_perf < min_perf)
704704
max_perf = min_perf;
705705

0 commit comments

Comments
 (0)