sched, cpuidle: Track cpuidle state index in the scheduler