From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH 2/6] cpuidle: menu: Compute first_idx when latency_req is known Date: Thu, 4 Oct 2018 16:22:47 +0200 Message-ID: <20181004142247.GA1881@mai> References: <3510260.hvypppS8Bs@aspire.rjw.lan> <2172591.2D0LTaJpaX@aspire.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <2172591.2D0LTaJpaX@aspire.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: Linux PM , Peter Zijlstra , LKML List-Id: linux-pm@vger.kernel.org On Tue, Oct 02, 2018 at 11:42:56PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > 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 Reviewedy-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog