From patchwork Mon May 27 14:32:38 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: 2620191 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 C5AC1DF215 for ; Mon, 27 May 2013 14:33:35 +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 1UgyU3-0001E3-H7; Mon, 27 May 2013 14:33:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyTs-0001Ma-NM; Mon, 27 May 2013 14:33:00 +0000 Received: from mail-vb0-x234.google.com ([2607:f8b0:400c:c02::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyTi-0001Ki-Sc for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2013 14:32:51 +0000 Received: by mail-vb0-f52.google.com with SMTP id p12so3726956vbe.25 for ; Mon, 27 May 2013 07:32:29 -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=2aoZrTEm7QTJLU5azjtzvrrvb7OYFBo8FMEFQs+QkSU=; b=ZsM19R8+30KwRweaXpN6ff4gVu+UyoA4TuW8vIH2avGVrfbcHW4cyiRoieHusI1fsa C4dGRgu3e9R1ckpUAi251HYMgCixW3ysPueyjBC6l4TQNra6kHafdk5i8S+Dh6xRLsKq mGsC3Sx4CtAXewkeCOTaFwoJ9ABGnX7xwYiGBgp6m7l9a4cgLfKaY1O55mOhD2rN08Tj erJWd64JfIOqRfo5zHULWjwiZVqMZxlueXhnr9Os4MjXTHcMj8//4oLykRs6iZ8VIk+j BcjruMO+JTHl9umJ4KOF8AUd8ZnjWpx0U/wQB3GdNuX0xaX+r6F7BkbHjiwaARE9dzF9 EORQ== X-Received: by 10.58.106.77 with SMTP id gs13mr15390734veb.22.1369665149748; Mon, 27 May 2013 07:32:29 -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.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:28 -0700 (PDT) From: Sanjay Singh Rawat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/8] ARM: EXYNOS: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:38 +0530 Message-Id: <1369665166-13049-2-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: ALoCoQkuaKzSgVxczfyeCU3iV5QiGxsC1xlBhgxuXW7ySw7f4m+lfYiPlZWSa4rArI3eyK/Gk8Y1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130527_103251_045560_12ECA373 X-CRM114-Status: GOOD ( 10.49 ) X-Spam-Score: -1.1 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.1 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] -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-exynos/hotplug.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c index af90cfa..7fcedd8 100644 --- a/arch/arm/mach-exynos/hotplug.c +++ b/arch/arm/mach-exynos/hotplug.c @@ -98,13 +98,8 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) if (cpu == 1) __raw_writel(0, S5P_ARM_CORE1_CONFIGURATION); - /* - * here's the WFI - */ - asm(".word 0xe320f003\n" - : - : - : "memory", "cc"); + /* enter WFI mode */ + cpu_do_idle(); if (pen_release == cpu_logical_map(cpu)) { /*