From 5fe46607d40dee4a549b53b562cb6dbe899e0837 Mon Sep 17 00:00:00 2001 From: TIMISONG-dev Date: Thu, 5 Dec 2024 01:22:15 +0300 Subject: [PATCH] Revert "cpufreq: schedutil: Update next_freq when cpufreq_limits change" This reverts commit 8c22dca216a3d686696773092620948e3c51026e. --- kernel/sched/cpufreq_schedutil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index bffe6c791c3b..4d1215a23217 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -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 */