sched: Calculate energy consumption of sched_group
authorMorten Rasmussen <morten.rasmussen@arm.com>
Thu, 18 Dec 2014 14:47:18 +0000 (14:47 +0000)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:49:51 +0000 (16:49 +0800)
commitc1770a521398102b6f2447502035887297b17ea0
tree102d575e3bd4a4787f59f77a42c7a8e0ba8f87a1
parent5ec8ccabfef3989f4514f22c034a15aeab691110
sched: Calculate energy consumption of sched_group

For energy-aware load-balancing decisions it is necessary to know the
energy consumption estimates of groups of cpus. This patch introduces a
basic function, sched_group_energy(), which estimates the energy
consumption of the cpus in the group and any resources shared by the
members of the group.

NOTE: The function has five levels of identation and breaks the 80
character limit. Refactoring is necessary.

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