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)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:34:30 +0000 (12:34 +0000)
commit424fc5dbdf5fd08b0c08483c0fa806da6ac40b11
treef610604260f491416414ecf62d76b5c35a2771f9
parent2706f607bfd0aac647ba45a97f3dcfff821cc04a
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