From patchwork Mon May 27 14:32:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjay Singh Rawat X-Patchwork-Id: 17227 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DAAD5238E8 for ; Mon, 27 May 2013 14:33:57 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q4sf3919703yen.0 for ; Mon, 27 May 2013 07:32:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Ckn3Eo9dLl2qLLcYP68Ca1jaZ6U8VECuiDiz0hM7C4A=; b=BnKcjJjWricb4CM9RInk3Dpzdw6+OPiR0zIWoo6UcTNTA33jMoeZO4w6vkPAxg6Jxq teLhrb3YJHDFehoNeT65KxSI9XC9K3aCRhbgx4ASJwq0wfzDaPFe8hU8HxGJhtVk8J9N XEXnFg18E8uDkvK1xPju4Ah36bTj0ONmuSxwI0scAxurqYVQnRCKFiE7OQJfRYuFnerz MyZPvvxLJhXtWbUiQk1f4/36eew8rKK0/KYW+3tDcJnI8IabhH9rlWE6dTTjN4HD7Ysi 2EeOn8mBoY9u3UlbowTbLmEAKX6UMvZgvi5WEVXKFH1KSsDk8p9BgCFw3uYG53B8YWfQ NJJg== X-Received: by 10.236.61.42 with SMTP id v30mr14732974yhc.15.1369665173472; Mon, 27 May 2013 07:32:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.136 with SMTP id h8ls3090928qej.31.gmail; Mon, 27 May 2013 07:32:53 -0700 (PDT) X-Received: by 10.52.0.198 with SMTP id 6mr13021272vdg.65.1369665173298; Mon, 27 May 2013 07:32:53 -0700 (PDT) Received: from mail-ve0-x235.google.com (mail-ve0-x235.google.com [2607:f8b0:400c:c01::235]) by mx.google.com with ESMTPS id ha8si16892063vdb.9.2013.05.27.07.32.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:53 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::235; Received: by mail-ve0-f181.google.com with SMTP id db10so3259555veb.26 for ; Mon, 27 May 2013 07:32:53 -0700 (PDT) X-Received: by 10.220.238.4 with SMTP id kq4mr15514301vcb.73.1369665173223; Mon, 27 May 2013 07:32:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.229.199 with SMTP id jj7csp2211vcb; Mon, 27 May 2013 07:32:52 -0700 (PDT) X-Received: by 10.220.228.74 with SMTP id jd10mr15342677vcb.65.1369665172891; Mon, 27 May 2013 07:32:52 -0700 (PDT) Received: from mail-vb0-x22b.google.com (mail-vb0-x22b.google.com [2607:f8b0:400c:c02::22b]) by mx.google.com with ESMTPS id 2si16862072vct.62.2013.05.27.07.32.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:52 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22b is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400c:c02::22b; Received: by mail-vb0-f43.google.com with SMTP id e12so2472337vbg.30 for ; Mon, 27 May 2013 07:32:52 -0700 (PDT) X-Received: by 10.220.42.7 with SMTP id q7mr15491085vce.69.1369665172775; Mon, 27 May 2013 07:32:52 -0700 (PDT) Received: from srawat-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id aq10sm20163294ved.2.2013.05.27.07.32.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:51 -0700 (PDT) From: Sanjay Singh Rawat To: linux-arm-kernel@lists.infradead.org Cc: linux@arm.linux.org.uk, nico@linaro.org, arnd@arndb.de, kgene.kim@samsung.com, michal.simek@xilinx.com, srinidhi.kasagar@stericsson.com, davidb@codeaurora.org, linaro-dev@lists.linaro.org, patches@linaro.org, Sanjay Singh Rawat Subject: [PATCH 4/8] ARM: vexpress: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:41 +0530 Message-Id: <1369665166-13049-5-git-send-email-sanjay.rawat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369665166-13049-1-git-send-email-sanjay.rawat@linaro.org> References: <1369665166-13049-1-git-send-email-sanjay.rawat@linaro.org> X-Gm-Message-State: ALoCoQkEy3DtuZuY0aJMNAZTsQcU7pf0+V6l8J1KZ3Rxj8+U3qJo0uhC6LghkZZCo7FxbNMkcbsV X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::235 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , use cpu_do_idle for entering the wfi mode. Signed-off-by: Sanjay Singh Rawat --- arch/arm/mach-vexpress/hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-vexpress/hotplug.c b/arch/arm/mach-vexpress/hotplug.c index f0ce6b8..b3dffc2 100644 --- a/arch/arm/mach-vexpress/hotplug.c +++ b/arch/arm/mach-vexpress/hotplug.c @@ -60,7 +60,8 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) * code will have already disabled interrupts */ for (;;) { - wfi(); + /* enter WFI mode */ + cpu_do_idle(); if (pen_release == cpu_logical_map(cpu)) { /*