|
@@ -342,7 +342,7 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev)
|
|
* Find the idle state with the lowest power while satisfying
|
|
* Find the idle state with the lowest power while satisfying
|
|
* our constraints.
|
|
* our constraints.
|
|
*/
|
|
*/
|
|
- for (i = CPUIDLE_DRIVER_STATE_START; i < drv->state_count; i++) {
|
|
|
|
|
|
+ for (i = data->last_state_idx + 1; i < drv->state_count; i++) {
|
|
struct cpuidle_state *s = &drv->states[i];
|
|
struct cpuidle_state *s = &drv->states[i];
|
|
struct cpuidle_state_usage *su = &dev->states_usage[i];
|
|
struct cpuidle_state_usage *su = &dev->states_usage[i];
|
|
|
|
|