cpufreq: schedutil: Add iowait boosting
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 Sep 2016 22:00:31 +0000 (00:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Sep 2016 21:36:01 +0000 (23:36 +0200)
commit21ca6d2c52f8ca8638129c1dfc489d0b0ae68532
treee94b64e65de87721ad94784585ed5c3b53e64257
parent8c34ab1910a79319731107ec8ecd2e80893ea30c
cpufreq: schedutil: Add iowait boosting

Modify the schedutil cpufreq governor to boost the CPU
frequency if the SCHED_CPUFREQ_IOWAIT flag is passed to
it via cpufreq_update_util().

If that happens, the frequency is set to the maximum during
the first update after receiving the SCHED_CPUFREQ_IOWAIT flag
and then the boost is reduced by half during each following update.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Looks-good-to: Steve Muckle <smuckle@linaro.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
kernel/sched/cpufreq_schedutil.c