From patchwork Mon May 27 14:32:39 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: 17225 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f200.google.com (mail-gh0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D0322238E8 for ; Mon, 27 May 2013 14:33:42 +0000 (UTC) Received: by mail-gh0-f200.google.com with SMTP id 10sf7880944ghy.7 for ; Mon, 27 May 2013 07:32:38 -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=235/sXctxkiOXwCXPypNj1Y6V/Pb/w8rr6jcwe2MG/s=; b=JnPcjaapsqDOA86H1cPvtLUA0ipdGtuv8OYgQTLuAUrgOwe6ZKttvoVplLMUEFgsKd 7PIztGa3IfQLuVUJcwYoCaeoHWVZW4l0OvX0QQVShc9crQ+wDmcrJXkLZkebgPpg97Wt YaZoLAQCIXpMI6UpdeghQUkGnMJQPIhMx7TNTnf49jc6mCNmBqfsRIAxItdHj0/bpYWa zj+Lym+MJnuFWmsvIt3ytmnNBB6BAS0RYatNGj/ah8AdpBgMYCPYuN4qc7I9Z32SszYr PLl3QdRyHhvIUiXsmZJYL9Fo3ETfQMhoZZrWv42Q9bXBt38e2+5H9dk5R9X2kKOzAANY JO8g== X-Received: by 10.224.59.205 with SMTP id m13mr15424346qah.7.1369665158390; Mon, 27 May 2013 07:32:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.136 with SMTP id ge8ls2851566qeb.4.gmail; Mon, 27 May 2013 07:32:38 -0700 (PDT) X-Received: by 10.52.28.171 with SMTP id c11mr10443796vdh.18.1369665158237; Mon, 27 May 2013 07:32:38 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id q7si4010304vcn.36.2013.05.27.07.32.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id id13so4711509vcb.23 for ; Mon, 27 May 2013 07:32:38 -0700 (PDT) X-Received: by 10.220.192.3 with SMTP id do3mr15415270vcb.16.1369665158148; Mon, 27 May 2013 07:32:38 -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 jj7csp2204vcb; Mon, 27 May 2013 07:32:37 -0700 (PDT) X-Received: by 10.220.53.138 with SMTP id m10mr15415726vcg.29.1369665157772; Mon, 27 May 2013 07:32:37 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id p20si16873915veh.12.2013.05.27.07.32.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id hr11so4783188vcb.33 for ; Mon, 27 May 2013 07:32:37 -0700 (PDT) X-Received: by 10.220.119.17 with SMTP id x17mr1987495vcq.64.1369665157675; Mon, 27 May 2013 07:32:37 -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.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:36 -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 2/8] ARM: RealView: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:39 +0530 Message-Id: <1369665166-13049-3-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: ALoCoQkLjLJZ5c6xlk6XxemVWIBn3l3zsKul3NtnRDMOA3LdA/Eqr3TlhmHfbTr4mcJAJ5c0uon8 X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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-realview/hotplug.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-realview/hotplug.c b/arch/arm/mach-realview/hotplug.c index ac22dd4..c42022b 100644 --- a/arch/arm/mach-realview/hotplug.c +++ b/arch/arm/mach-realview/hotplug.c @@ -59,13 +59,8 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) * code will have already disabled interrupts */ for (;;) { - /* - * here's the WFI - */ - asm(".word 0xe320f003\n" - : - : - : "memory", "cc"); + /* enter WFI mode */ + cpu_do_idle(); if (pen_release == cpu_logical_map(cpu)) { /*