sched: Calculate energy consumption of sched_group
authorMorten Rasmussen <morten.rasmussen@arm.com>
Thu, 18 Dec 2014 14:47:18 +0000 (14:47 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commit074bcc729d948432568446cbc5598ecabb80bbb9
tree2bb5ee4ec3b2e8fa3b63464a6044cc3d933e5c7a
parent6b8bde20df2dd087dd8e3554a9a8c9c511a3b123
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