sched/cpufreq: Rate limits for SCHED_DEADLINE
authorClaudio Scordino <claudio@evidence.eu.com>
Tue, 13 Mar 2018 10:35:40 +0000 (11:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Mar 2018 21:48:22 +0000 (22:48 +0100)
commite97a90f7069b740575bcb1dae86596e0484b8957
tree9886e76139ec6e5406b9cd341e9bb518551c3d1f
parentd519329f72a6f36bc4f2b85452640cfe583b4f81
sched/cpufreq: Rate limits for SCHED_DEADLINE

When the SCHED_DEADLINE scheduling class increases the CPU utilization, it
should not wait for the rate limit, otherwise it may miss some deadline.

Tests using rt-app on Exynos5422 with up to 10 SCHED_DEADLINE tasks have
shown reductions of even 10% of deadline misses with a negligible
increase of energy consumption (measured through Baylibre Cape).

Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Joel Fernandes <joelaf@google.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: linux-pm@vger.kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Morten Rasmussen <morten.rasmussen@arm.com>
Cc: Patrick Bellasi <patrick.bellasi@arm.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://lkml.kernel.org/r/1520937340-2755-1-git-send-email-claudio@evidence.eu.com
kernel/sched/cpufreq_schedutil.c