sched: Calculate energy consumption of sched_group
authorMorten Rasmussen <morten.rasmussen@arm.com>
Thu, 18 Dec 2014 14:47:18 +0000 (14:47 +0000)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:34:30 +0000 (12:34 +0000)
commit7a31b5cce774cd17698b5062061c5a2522e1bdd7
tree070717597ff07e60d04949dce7f3b4b37218daf4
parent184b138bb77183ccd44e0bcb3716d92532eda2d3
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