From patchwork Wed Feb 16 12:04:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 566741 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1GC4Sk0030677 for ; Wed, 16 Feb 2011 12:04:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758964Ab1BPME1 (ORCPT ); Wed, 16 Feb 2011 07:04:27 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:51799 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758950Ab1BPME1 (ORCPT ); Wed, 16 Feb 2011 07:04:27 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p1GC4LiX003916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Feb 2011 06:04:24 -0600 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p1GC4KHS010335; Wed, 16 Feb 2011 17:34:20 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id p1GC4KQO006275; Wed, 16 Feb 2011 17:34:20 +0530 Received: (from a0131687@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id p1GC4Kev006271; Wed, 16 Feb 2011 17:34:20 +0530 From: Rajendra Nayak To: linux-omap@vger.kernel.org Cc: khilman@ti.com, linux-arm-kernel@lists.infradead.org, Rajendra Nayak Subject: [PATCH] OMAP2+: PM: Warn users of sleep_while_idle if !CONFIG_CPU_IDLE Date: Wed, 16 Feb 2011 17:34:20 +0530 Message-Id: <1297857860-3713-1-git-send-email-rnayak@ti.com> X-Mailer: git-send-email 1.5.6.6 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Feb 2011 12:04:29 +0000 (UTC) diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 125f565..1e722a0 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -569,6 +569,10 @@ static int option_get(void *data, u64 *val) *val = *option; +#ifndef CONFIG_CPU_IDLE + if (option == &sleep_while_idle) + pr_warn("CONFIG_CPU_IDLE is not enabled\n"); +#endif return 0; } @@ -581,6 +585,11 @@ static int option_set(void *data, u64 val) *option = val; +#ifndef CONFIG_CPU_IDLE + if (option == &sleep_while_idle) + pr_warn("CONFIG_CPU_IDLE is not enabled\n"); +#endif + if (option == &enable_off_mode) { if (val) omap_pm_enable_off_mode();