From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932973AbbESOgt (ORCPT ); Tue, 19 May 2015 10:36:49 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:33336 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755785AbbESOgf (ORCPT ); Tue, 19 May 2015 10:36:35 -0400 Message-ID: <555B4A6D.1050001@linaro.org> Date: Tue, 19 May 2015 16:36:29 +0200 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Rafael J. Wysocki" , Linux PM list CC: Linux Kernel Mailing List , Thomas Gleixner , Peter Zijlstra , Len Brown Subject: Re: [PATCH 1/2] PM / sleep: Make suspend-to-idle-specific code depend on CONFIG_SUSPEND References: <7138791.PFSSF2gqXk@vostro.rjw.lan> <2270439.0UMhzsTGM1@vostro.rjw.lan> In-Reply-To: <2270439.0UMhzsTGM1@vostro.rjw.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog