ANDROID: sched: Calculate energy consumption of sched_group
authorMorten Rasmussen <morten.rasmussen@arm.com>
Thu, 18 Dec 2014 14:47:18 +0000 (14:47 +0000)
committerChris Redpath <chris.redpath@arm.com>
Thu, 14 Dec 2017 21:41:10 +0000 (21:41 +0000)
commit3ae1b07001d6dd49eb2731a4c62f6a0d5215f5f2
tree74a920980e7d603e8dc731906b2974cdfbd8a21f
parent9a77830051a2c009e8282eecbbc62daab15b9afa
ANDROID: 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>
Change-Id: I0da68f5aef23247db2652fad86ee06749c7e284a
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c
kernel/sched/sched.h
kernel/sched/topology.c