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)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commitdf05d846a435268b454eb03fee3b7859dfc94471
tree2c4811b642d56d3d03ea422bf095d61e4704b2d7
parentce646469d55c29913446a4694d1cba2819c3d950
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