Skip to content

Commit 022d0c6

Browse files
committed
Merge tag 'pm-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fix from Rafael Wysocki: "Fix a latent bug in the intel-pstate cpufreq driver that has been exposed by the recent schedutil governor changes (Doug Smythies)" * tag 'pm-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back
2 parents 5cf7ebe + f0a0fc1 commit 022d0c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2987,6 +2987,9 @@ static void intel_cpufreq_adjust_perf(unsigned int cpunum,
29872987
if (min_pstate < cpu->min_perf_ratio)
29882988
min_pstate = cpu->min_perf_ratio;
29892989

2990+
if (min_pstate > cpu->max_perf_ratio)
2991+
min_pstate = cpu->max_perf_ratio;
2992+
29902993
max_pstate = min(cap_pstate, cpu->max_perf_ratio);
29912994
if (max_pstate < min_pstate)
29922995
max_pstate = min_pstate;

0 commit comments

Comments
 (0)