Re: [PATCH 2/6] cpuidle: menu: Compute first_idx when latency_req is known

From: Daniel Lezcano
Date: Thu Oct 04 2018 - 10:22:55 EST


On Tue, Oct 02, 2018 at 11:42:56PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> Since menu_select() can only set first_idx to 1 if the exit latency
> of the second state is not greater than the latency limit, it should
> first determine that limit. Thus first_idx should be computed after
> the "interactivity" factor has been taken into account.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

Reviewedy-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>


--

<http://www.linaro.org/> Linaro.org â Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog