sched, cpuidle: Track cpuidle state index in the scheduler
authorMorten Rasmussen <morten.rasmussen@arm.com>
Tue, 27 Jan 2015 13:48:07 +0000 (13:48 +0000)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:34:30 +0000 (12:34 +0000)
commit2706f607bfd0aac647ba45a97f3dcfff821cc04a
tree22d93b7a7924051c64f96d5e0e1449e0f130ffb0
parenta172e650694734ea2ae277bc414779e0b6fe1044
sched, cpuidle: Track cpuidle state index in the scheduler

The idle-state of each cpu is currently pointed to by rq->idle_state but
there isn't any information in the struct cpuidle_state that can used to
look up the idle-state energy model data stored in struct
sched_group_energy. For this purpose is necessary to store the idle
state index as well. Ideally, the idle-state data should be unified.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
drivers/cpuidle/cpuidle.c
include/linux/cpuidle.h
kernel/sched/idle.c
kernel/sched/sched.h