From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH 1/2] PM / sleep: Make suspend-to-idle-specific code depend on CONFIG_SUSPEND Date: Tue, 19 May 2015 16:36:29 +0200 Message-ID: <555B4A6D.1050001@linaro.org> References: <7138791.PFSSF2gqXk@vostro.rjw.lan> <2270439.0UMhzsTGM1@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <2270439.0UMhzsTGM1@vostro.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org To: "Rafael J. Wysocki" , Linux PM list Cc: Linux Kernel Mailing List , Thomas Gleixner , Peter Zijlstra , Len Brown List-Id: linux-pm@vger.kernel.org On 05/16/2015 01:38 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since idle_should_freeze() is defined to always return 'false' > for CONFIG_SUSPEND unset, all of the code depending on it in > cpuidle_idle_call() is not necessary in that case. > > Make that code depend on CONFIG_SUSPEND too to avoid building it > when it is not going to be used. > > Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano --=20 Linaro.org =E2=94=82 Open source software fo= r ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog