diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-12-08 11:39:19 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-01-15 13:26:06 +0100 |
commit | e7d81a8827502ea469ab3fe8710e4072f8446793 (patch) | |
tree | 18d7afb13f83dfc704f17fa2ab6c2231579a4f7f | |
parent | c99991d7614330c9cde3a20c7901e4c400f987b0 (diff) |
cpuidle: menu: Default to state index 0
The poll state does no longer exists, we can safely default to the index
state 0 as now it won't be the poll state anymore.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-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 c2bf6b1d4406..5ab7ac241963 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c @@ -367,7 +367,7 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, data->needs_update = 0; } - data->last_state_idx = CPUIDLE_DRIVER_STATE_START; + data->last_state_idx = 0; /* determine the expected residency time, round up */ data->next_timer_us = next_timer_event; |