Skip to content

Commit b185c50

Browse files
Perry Yuanrafaeljw
authored andcommitted
cpufreq: amd_pstate: fix wrong lowest perf fetch
Fix the wrong lowest perf value reading which is used for new des_perf calculation by governor requested, the incorrect min_perf will get incorrect des_perf to be set , that will cause the system frequency changing unexpectedly. Reviewed-by: Huang Rui <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Perry Yuan <[email protected]> Signed-off-by: Su Jinzhou <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent d8bee41 commit b185c50

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
@@ -312,7 +312,7 @@ static int amd_pstate_target(struct cpufreq_policy *policy,
312312
return -ENODEV;
313313

314314
cap_perf = READ_ONCE(cpudata->highest_perf);
315-
min_perf = READ_ONCE(cpudata->lowest_nonlinear_perf);
315+
min_perf = READ_ONCE(cpudata->lowest_perf);
316316
max_perf = cap_perf;
317317

318318
freqs.old = policy->cur;

0 commit comments

Comments
 (0)