sched: Energy-aware wake-up task placement
authorMorten Rasmussen <morten.rasmussen@arm.com>
Sat, 9 May 2015 19:03:19 +0000 (20:03 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commitaed8d22cc84fc6086dc7cd259f6d1cf744500a07
tree4c9a490bad4e0d77a1bfefebe01225383804e1aa
parent60591a4a82053d6e53f499318a6f76c917b5e41e
sched: Energy-aware wake-up task placement

Let available compute capacity and estimated energy impact select
wake-up target cpu when energy-aware scheduling is enabled and the
system in not over-utilized (above the tipping point).

energy_aware_wake_cpu() attempts to find group of cpus with sufficient
compute capacity to accommodate the task and find a cpu with enough spare
capacity to handle the task within that group. Preference is given to
cpus with enough spare capacity at the current OPP. Finally, the energy
impact of the new target and the previous task cpu is compared to select
the wake-up target cpu.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
kernel/sched/fair.c