cpuidle: menu: Do not update last_state_idx in menu_select()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Oct 2018 21:45:07 +0000 (23:45 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 4 Oct 2018 17:26:38 +0000 (19:26 +0200)
commiteb40a380bff28f84b6583bba6786b46ef26ef548
tree4a425d49b40aac7ef3b1d5bb581fde54badfa2cc
parent96c3d11df15323e7f6e55242f7bda610c4bef402
cpuidle: menu: Do not update last_state_idx in menu_select()

It is not necessary to update data->last_state_idx in menu_select()
as it only is used in menu_update() which only runs when
data->needs_update is set and that is set only when updating
data->last_state_idx in menu_reflect().

Accordingly, drop the update of data->last_state_idx from
menu_select() and get rid of the (now redundant) "out" label
from it.

No intentional behavior changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/cpuidle/governors/menu.c