From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752649AbcGGNqu (ORCPT ); Thu, 7 Jul 2016 09:46:50 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36131 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752552AbcGGNqm (ORCPT ); Thu, 7 Jul 2016 09:46:42 -0400 Date: Thu, 7 Jul 2016 15:46:28 +0200 From: Daniel Lezcano To: Jisheng Zhang Cc: lorenzo.pieralisi@arm.com, lina.iyer@linaro.org, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] ARM: cpuidle: make arm_cpuidle_suspend() a bit more efficient Message-ID: <20160707134628.GB20553@linaro.org> References: <1467785755-3488-1-git-send-email-jszhang@marvell.com> <1467785755-3488-3-git-send-email-jszhang@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467785755-3488-3-git-send-email-jszhang@marvell.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 06, 2016 at 02:15:55PM +0800, Jisheng Zhang wrote: > Currently, we check cpuidle_ops.suspend every time when entering a > low-power idle state. But this check could be avoided in this hot path > by moving it into arm_cpuidle_read_ops() to reduce arm_cpuidle_suspend > overhead a bit. > > Signed-off-by: Jisheng Zhang > --- Acked-by: Daniel Lezcano