sched: Energy-aware wake-up task placement
authorMorten Rasmussen <morten.rasmussen@arm.com>
Sat, 9 May 2015 19:03:19 +0000 (20:03 +0100)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:34:30 +0000 (12:34 +0000)
commitee1a0a273f0f234e734cfbceb4a72df472eb5dc5
treea90cefe36383fee6397136d746cf731d8d3ab036
parent424fc5dbdf5fd08b0c08483c0fa806da6ac40b11
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