]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac21168f47962544d4c89f6753162188a5490d61
tree4a425d49b40aac7ef3b1d5bb581fde54badfa2cc
parentfd0516b9fdff3684fee19ffd63fadf236d83f517
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