From: Rafael J. Wysocki Date: Mon, 12 Jun 2017 12:16:16 +0000 (+0200) Subject: Revert "cpufreq: schedutil: Reduce frequencies slower" X-Git-Tag: v4.14-rc1~746^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff0a6d6f932ff4b9eb8e8140f98cc1cf763d0d78;p=platform%2Fkernel%2Flinux-rpi.git Revert "cpufreq: schedutil: Reduce frequencies slower" Revert commit 39b64aa1c007 (cpufreq: schedutil: Reduce frequencies slower) that introduced unintentional changes in behavior leading to adverse effects on some systems. Reported-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 76877a6..8773d1e 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -101,9 +101,6 @@ static void sugov_update_commit(struct sugov_policy *sg_policy, u64 time, if (sg_policy->next_freq == next_freq) return; - if (sg_policy->next_freq > next_freq) - next_freq = (sg_policy->next_freq + next_freq) >> 1; - sg_policy->next_freq = next_freq; sg_policy->last_freq_update_time = time;