sched: Estimate energy impact of scheduling decisions
authorMorten Rasmussen <morten.rasmussen@arm.com>
Tue, 6 Jan 2015 17:34:05 +0000 (17:34 +0000)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:49:51 +0000 (16:49 +0800)
commit2c6a8a48a701ca5d767f249eacb776f80858cbaa
tree4b1e3beef2dc8f286d27964feb5644d158610e60
parentdf2030c8412e6acdb3f7ec62ed195cc7967c30e2
sched: Estimate energy impact of scheduling decisions

Adds a generic energy-aware helper function, energy_diff(), that
calculates energy impact of adding, removing, and migrating utilization
in the system.

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