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: 2620201 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id E3993DF215 for ; Mon, 27 May 2013 14:34:13 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyUI-0001IC-2C; Mon, 27 May 2013 14:33:26 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyU1-0001NC-QZ; Mon, 27 May 2013 14:33:09 +0000 Received: from mail-vc0-f181.google.com ([209.85.220.181]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyTq-0001LG-Q6 for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2013 14:32:59 +0000 Received: by mail-vc0-f181.google.com with SMTP id lf11so4676819vcb.26 for ; Mon, 27 May 2013 07:32:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=235/sXctxkiOXwCXPypNj1Y6V/Pb/w8rr6jcwe2MG/s=; b=bZcTUrb9wx1H1PiL+qjky+f+XNTWNfX9KB+ktuw0vTS139Ud6IRmGrWbfhqRCxXUJi ncoMVcJ1c+i9bWjQSeEJnHP1QUZbg9c/4PAdMn7Q1hjnsuFz640fFiTQrdja7awZkadD pQmBFy0NAuhfcE60K85OLUbYMRUdN/6hC7rLJ/V7u7YjmiuG4y9YI6O1leTXnFBwz69n o4zBfgeoKJ5QH8A3uaFqgQTcS8K+QwbpraUrvN3ahnt+ZS1ZuByNb1YOOcEaD8vtU8Zu ZfCPQ3clurg27IfzPViLCH4vafdr10VSGEnOYDo9Kmb96y65BEeMakzSV0YtUoFt4I41 xTuQ== 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 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: ALoCoQmoDcPa1Vy0vMeHV3ZvDJUiS0m+Gr3UxREGbG93K0mup2Gc+tFtDVduGywMMQ7PNWwU4Z+u X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130527_103258_875401_6CD5F6C9 X-CRM114-Status: GOOD ( 10.62 ) X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [203.247.149.152 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.181 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, linux@arm.linux.org.uk, arnd@arndb.de, srinidhi.kasagar@stericsson.com, nico@linaro.org, michal.simek@xilinx.com, Sanjay Singh Rawat , patches@linaro.org, linaro-dev@lists.linaro.org, davidb@codeaurora.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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)) { /*