From patchwork Mon Aug 3 07:39:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 38841 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n737d6Qx000946 for ; Mon, 3 Aug 2009 07:39:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680AbZHCHjD (ORCPT ); Mon, 3 Aug 2009 03:39:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752678AbZHCHjD (ORCPT ); Mon, 3 Aug 2009 03:39:03 -0400 Received: from utopia.booyaka.com ([72.9.107.138]:46133 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752590AbZHCHjC (ORCPT ); Mon, 3 Aug 2009 03:39:02 -0400 Received: (qmail 15426 invoked by uid 526); 3 Aug 2009 07:39:02 -0000 Date: Mon, 3 Aug 2009 01:39:02 -0600 (MDT) From: Paul Walmsley To: linux-omap@vger.kernel.org cc: khilman@deeprootsystems.com Subject: [PATCH] OMAP: PM: warn if CONFIG_CPU_IDLE is not enabled Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org For MPU latency constraints to work, CONFIG_CPU_IDLE must be enabled, since CPUIdle is where the constraints are evaluated. Warn during compilation if CONFIG_CPU_IDLE is not defined. Signed-off-by: Paul Walmsley --- arch/arm/mach-omap2/resource34xx.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c index 25535a3..1693e9b 100644 --- a/arch/arm/mach-omap2/resource34xx.c +++ b/arch/arm/mach-omap2/resource34xx.c @@ -28,6 +28,10 @@ #include "cm.h" #include "cm-regbits-34xx.h" +#ifndef CONFIG_CPU_IDLE +#warning MPU latency constraints require CONFIG_CPU_IDLE to function! +#endif + /** * init_latency - Initializes the mpu/core latency resource. * @resp: Latency resource to be initalized