Message ID | 1392623575-4884-1-git-send-email-mugunthanvnm@ti.com |
---|---|
State | Accepted |
Commit | 865da01cd98d67518befe854a71e432d894db279 |
Headers | show
Return-Path: <patchwork-forward+bncBDPILVOKSELBBG4AQ6MAKGQELC2IS7Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8184D202B2 for <linaro@patches.linaro.org>; Mon, 17 Feb 2014 07:54:04 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp4sf57650766obc.5 for <linaro@patches.linaro.org>; Sun, 16 Feb 2014 23:54:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :mime-version:cc:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=1FM8ytE+WMo6oUGBPatituV1RoFuigw6aNsSCLBkEaY=; b=LuaM7SzKHYqq0L6D/YgOa4i75bVghX0AaGcmZl5Yz+iWZI0u1WxTZ7hH0GQkAJA8J5 GoGpLeFdTQp+f2baUyEY1vXluRWvdoyeV1dHQ3FGWa96ECcl7K+N/Z63hIM8uUPXLKIv zZx0hTeWhTvFxZU0ul76OKqhZUWld6Ylxt1xRZnF6mx/VI7MNeRcEFOqX6rJn6fziJjo Rj+y+P5yqGWH4ViijEmApytMHqtf/q6PHxZ/RdncN6JS5JdmMxSiWf+iNsmD78S2CiUj wyr1MFUMds2b/D1v8qgBmPlgc60ymWrMtx7H6oymddD413DWy4i0+IYZWR/yqKSGbp9a iFEg== X-Gm-Message-State: ALoCoQnpJHNu7X6RTU3QU2oqXrChHj6qp8uH37+nrotAvnGcrFZa8kAuko0Q+IynunOXqcGPwUbJ X-Received: by 10.182.129.129 with SMTP id nw1mr9754323obb.34.1392623643135; Sun, 16 Feb 2014 23:54:03 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.203 with SMTP id t69ls771683qgd.87.gmail; Sun, 16 Feb 2014 23:54:03 -0800 (PST) X-Received: by 10.52.27.132 with SMTP id t4mr3842765vdg.11.1392623643043; Sun, 16 Feb 2014 23:54:03 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id yb7si4307502vec.115.2014.02.16.23.54.03 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Feb 2014 23:54:03 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id c14so11625617vea.20 for <patchwork-forward@linaro.org>; Sun, 16 Feb 2014 23:54:03 -0800 (PST) X-Received: by 10.221.40.10 with SMTP id to10mr11681360vcb.22.1392623642971; Sun, 16 Feb 2014 23:54:02 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp118365vcz; Sun, 16 Feb 2014 23:54:02 -0800 (PST) X-Received: by 10.180.87.164 with SMTP id az4mr11601622wib.2.1392623641945; Sun, 16 Feb 2014 23:54:01 -0800 (PST) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id e6si7134705wiw.43.2014.02.16.23.54.01 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Feb 2014 23:54:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFJ1T-0007Gv-Lb; Mon, 17 Feb 2014 07:53:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFJ1R-0002xm-0k; Mon, 17 Feb 2014 07:53:49 +0000 Received: from bear.ext.ti.com ([192.94.94.41]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFJ1N-0002x5-6Y for linux-arm-kernel@lists.infradead.org; Mon, 17 Feb 2014 07:53:45 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1H7rGvl011141; Mon, 17 Feb 2014 01:53:16 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1H7rG3K011683; Mon, 17 Feb 2014 01:53:16 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 17 Feb 2014 01:53:15 -0600 Received: from mugunthan-lt.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1H7rD1u016212; Mon, 17 Feb 2014 01:53:13 -0600 From: Mugunthan V N <mugunthanvnm@ti.com> To: <tony@atomide.com> Subject: [PATCH 1/1] ARM: OMAP: Kill warning in CPUIDLE code with !CONFIG_SMP Date: Mon, 17 Feb 2014 13:22:55 +0530 Message-ID: <1392623575-4884-1-git-send-email-mugunthanvnm@ti.com> X-Mailer: git-send-email 1.9.0.rc3.21.g475c52b MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140217_025345_322904_1450DC9A X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [192.94.94.41 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: nm@ti.com, Mugunthan V N <mugunthanvnm@ti.com>, linux@arm.linux.org.uk, linux-kernel@vger.kernel.org, Santosh Shilimkar <santosh.shilimkar@ti.com>, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c index 4c158c8..01fc710 100644 --- a/arch/arm/mach-omap2/cpuidle44xx.c +++ b/arch/arm/mach-omap2/cpuidle44xx.c @@ -23,6 +23,8 @@ #include "prm.h" #include "clockdomain.h" +#define MAX_CPUS 2 + /* Machine specific information */ struct idle_statedata { u32 cpu_state; @@ -48,11 +50,11 @@ static struct idle_statedata omap4_idle_data[] = { }, }; -static struct powerdomain *mpu_pd, *cpu_pd[NR_CPUS]; -static struct clockdomain *cpu_clkdm[NR_CPUS]; +static struct powerdomain *mpu_pd, *cpu_pd[MAX_CPUS]; +static struct clockdomain *cpu_clkdm[MAX_CPUS]; static atomic_t abort_barrier; -static bool cpu_done[NR_CPUS]; +static bool cpu_done[MAX_CPUS]; static struct idle_statedata *state_ptr = &omap4_idle_data[0]; /* Private functions */