sched: Estimate energy impact of scheduling decisions
authorMorten Rasmussen <morten.rasmussen@arm.com>
Tue, 6 Jan 2015 17:34:05 +0000 (17:34 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commitc77a2807a8d9bdca803255ba189650431ffd83d0
tree3a946feba85a58faee842344d8a5bfafb1d847fd
parentb7a0598b071c5e2f269d0afbbbd1b6d36b83bb3f
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