OSDN Git Service

ANDROID: 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)
committerChris Redpath <chris.redpath@arm.com>
Tue, 19 Dec 2017 13:25:40 +0000 (13:25 +0000)
commita732c97420e109956c20f34c70b91e6d06f5df31
treeb443facfb1f11ea19001d19f725001a68f36dc2e
parent19de2fa753718cf38b8f78324fa1b1a9124a6e35
ANDROID: 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>
Change-Id: Ib3d1178512735b0e314881f73fb8ccff5a69319f
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
drivers/cpuidle/cpuidle.c
include/linux/cpuidle.h
kernel/sched/idle.c
kernel/sched/sched.h