cpuidle: menu: Replace data->predicted_us with local variable
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Oct 2018 09:56:21 +0000 (11:56 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Oct 2018 10:02:44 +0000 (12:02 +0200)
commit03dba278043358bbbf4f029be169e1e73d2fbe2b
treeb381cb30e44849fe3cf4c8457fc81fbfb4f14903
parent7037b43e0076cce1c07c72540e219fb5db7ea01f
cpuidle: menu: Replace data->predicted_us with local variable

The predicted_us field in struct menu_device is only accessed in
menu_select(), so replace it with a local variable in that function.

With that, stop using expected_interval instead of predicted_us to
store the new predicted idle duration value if it is set to the
selected state's target residency which is quite confusing.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/cpuidle/governors/menu.c