sched: Determine the current sched_group idle-state
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Tue, 27 Jan 2015 14:04:17 +0000 (14:04 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commit60591a4a82053d6e53f499318a6f76c917b5e41e
treef864439008ec8bc447050de4550288591db90e6a
parentdf05d846a435268b454eb03fee3b7859dfc94471
sched: Determine the current sched_group idle-state

To estimate the energy consumption of a sched_group in
sched_group_energy() it is necessary to know which idle-state the group
is in when it is idle. For now, it is assumed that this is the current
idle-state (though it might be wrong). Based on the individual cpu
idle-states group_idle_state() finds the group idle-state.

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