Skip to content

Commit

Permalink
Revert "cpufreq: schedutil: Update next_freq when cpufreq_limits change"
Browse files Browse the repository at this point in the history
This reverts commit 8c22dca.
  • Loading branch information
TIMISONG-dev committed Dec 4, 2024
1 parent e3b3d35 commit 5fe4660
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/sched/cpufreq_schedutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,7 @@ static void sugov_update_single(struct update_util_data *hook, u64 time,
* Do not reduce the frequency if the CPU has not been idle
* recently, as the reduction is likely to be premature then.
*/
if (busy && next_f < sg_policy->next_freq &&
!sg_policy->need_freq_update) {
if (busy && next_f < sg_policy->next_freq) {
next_f = sg_policy->next_freq;

/* Restore cached freq as next_freq has changed */
Expand Down

0 comments on commit 5fe4660

Please sign in to comment.