From patchwork Mon May 27 14:32:45 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: 17231 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84B8A238E8 for ; Mon, 27 May 2013 14:34:30 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id d10sf1886993vea.8 for ; Mon, 27 May 2013 07:33:25 -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=m+3QH0nFuWGBynmndhTsyZpOq3AGsl8UG8BBGe6JcOk=; b=FrqsyAvp5Tc0qXz6Sbhvl+tiITMdrFXjYuPu0zPbonEpiaEHi71LclPrTwV8xUKcFG M5tWzxzxrajuHTf3m9SZo/HXpTrvpLrx8uDSBKg+pRNwooeXR+OHh5g4dZtFvZRfCVU1 9Z0QFD8HqHeOGQnpT63hQiXkO9xMr/JcRHBpqfIzL4prH3h55AbuoXlnR+NyytEOj9nY /O16jinR6lx/d391bkmBA7u70f2N/OcVv0+Rw2j1b2A8iT4UXg9DTKyH24ivF7aPtjub Ic6DjL2MtuJN9S9WMmwhqlCWwtitJQhf9IiDDE6PyYKtex3qUU3U0s+EK1dsxC8b5rmL K51w== X-Received: by 10.236.118.196 with SMTP id l44mr13673767yhh.48.1369665205870; Mon, 27 May 2013 07:33:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.238 with SMTP id l14ls2902296qej.13.gmail; Mon, 27 May 2013 07:33:25 -0700 (PDT) X-Received: by 10.52.159.72 with SMTP id xa8mr13105543vdb.48.1369665205751; Mon, 27 May 2013 07:33:25 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ef7si16863860vdc.111.2013.05.27.07.33.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id ht10so4740873vcb.4 for ; Mon, 27 May 2013 07:33:25 -0700 (PDT) X-Received: by 10.220.10.212 with SMTP id q20mr2501300vcq.9.1369665205672; Mon, 27 May 2013 07:33:25 -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 jj7csp2231vcb; Mon, 27 May 2013 07:33:25 -0700 (PDT) X-Received: by 10.180.90.164 with SMTP id bx4mr8848832wib.13.1369665204602; Mon, 27 May 2013 07:33:24 -0700 (PDT) Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [2607:f8b0:400c:c01::231]) by mx.google.com with ESMTPS id yv2si4459616wjc.76.2013.05.27.07.33.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:24 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::231 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400c:c01::231; Received: by mail-ve0-f177.google.com with SMTP id cz10so427245veb.8 for ; Mon, 27 May 2013 07:33:23 -0700 (PDT) X-Received: by 10.220.187.71 with SMTP id cv7mr15516425vcb.28.1369665203130; Mon, 27 May 2013 07:33:23 -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.33.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:22 -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 8/8] ARM: PRIMA2: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:45 +0530 Message-Id: <1369665166-13049-9-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: ALoCoQkyJFgD16kE08+xa4//GiwiNt8ztko7Ui+5Me1wBhPuXGJ3iUmX05Uu5mb4KnbB4GY689bp X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 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-prima2/hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-prima2/hotplug.c b/arch/arm/mach-prima2/hotplug.c index 0ab2f8b..68d2903 100644 --- a/arch/arm/mach-prima2/hotplug.c +++ b/arch/arm/mach-prima2/hotplug.c @@ -16,8 +16,8 @@ static inline void platform_do_lowpower(unsigned int cpu) { /* we put the platform to just WFI */ for (;;) { - __asm__ __volatile__("dsb\n\t" "wfi\n\t" - : : : "memory"); + cpu_do_idle(); + if (pen_release == cpu_logical_map(cpu)) { /* * OK, proper wakeup, we're done