Skip to content

Commit 55db9b7

Browse files
dhananjay-AMDsuperm1
authored andcommitted
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 <dhananjay.ugwekar@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20250205112523.201101-3-dhananjay.ugwekar@amd.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
1 parent d364eee commit 55db9b7

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)