OSDN Git Service

ANDROID: 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)
committerChris Redpath <chris.redpath@arm.com>
Tue, 19 Dec 2017 13:25:40 +0000 (13:25 +0000)
commita35c8cc0fdee05a0469544a3c1fa055f0313dcfe
tree5d1bdb95ef9a14caa56f78f076e8ae659efa9732
parenta732c97420e109956c20f34c70b91e6d06f5df31
ANDROID: 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>
Change-Id: I86e80ac0ef75bcb5e8d1b8db72800a9d34880467
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c