diff options
-rw-r--r-- | drivers/cpuidle/governors/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c index be0bae0b41e9..0742b3296673 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c | |||
@@ -342,7 +342,7 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev) | |||
342 | * Find the idle state with the lowest power while satisfying | 342 | * Find the idle state with the lowest power while satisfying |
343 | * our constraints. | 343 | * our constraints. |
344 | */ | 344 | */ |
345 | for (i = CPUIDLE_DRIVER_STATE_START; i < drv->state_count; i++) { | 345 | for (i = data->last_state_idx + 1; i < drv->state_count; i++) { |
346 | struct cpuidle_state *s = &drv->states[i]; | 346 | struct cpuidle_state *s = &drv->states[i]; |
347 | struct cpuidle_state_usage *su = &dev->states_usage[i]; | 347 | struct cpuidle_state_usage *su = &dev->states_usage[i]; |
348 | 348 | ||