sched: Energy-aware wake-up task placement
authorMorten Rasmussen <morten.rasmussen@arm.com>
Sat, 9 May 2015 19:03:19 +0000 (20:03 +0100)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:49:52 +0000 (16:49 +0800)
commite38982ba3289974385bd8fead9bf767d8cdde386
tree05b71066dce7433f1b942c89a27d7fdfc7277758
parentec055b978e851118a2b9d42f61ecad619cd1ce77
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