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: 17224 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 168EE238E8 for ; Mon, 27 May 2013 14:33:35 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id m17sf8838886vca.8 for ; Mon, 27 May 2013 07:32:30 -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=2aoZrTEm7QTJLU5azjtzvrrvb7OYFBo8FMEFQs+QkSU=; b=TfJNnic8IHchbh5A9higfQcXH6qC5jeqCH8duJnydMEExbZ4JuE4e0hDcJxAD3AKrs WSx3usPba3b7r7I+gkWlyI4hRYPc/wCOaiwgFmwQFlPnlCstT/Owwnra34Bx2VTclHN9 JJhJ92t3ZQylvoyxO1fOIcIUEcOTHi1f/zRSLxM01eLKYPalM2yygy7Dqv8iDZpPq3sN i7xrZGXTVg4Th+TAci8YAgOtRR8vAswqcOJdwvmJhVFovf1gW0xxubOiktQXNWVyYxfU emfimR/QR0mfG47HDVdfbTzuNl/Fi0EcOmFd3V74McpnpmscTGxzajg4xCWu6ehVLbfA umZw== X-Received: by 10.236.70.170 with SMTP id p30mr15361041yhd.5.1369665150595; Mon, 27 May 2013 07:32:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.108.201 with SMTP id hm9ls306027qeb.65.gmail; Mon, 27 May 2013 07:32:30 -0700 (PDT) X-Received: by 10.59.9.39 with SMTP id dp7mr15469324ved.36.1369665150475; Mon, 27 May 2013 07:32:30 -0700 (PDT) Received: from mail-vb0-x231.google.com (mail-vb0-x231.google.com [2607:f8b0:400c:c02::231]) by mx.google.com with ESMTPS id sa4si16891266vdc.10.2013.05.27.07.32.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:30 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::231 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:c02::231; Received: by mail-vb0-f49.google.com with SMTP id q13so2467602vbe.36 for ; Mon, 27 May 2013 07:32:30 -0700 (PDT) X-Received: by 10.58.172.67 with SMTP id ba3mr15156651vec.58.1369665150355; Mon, 27 May 2013 07:32:30 -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 jj7csp2196vcb; Mon, 27 May 2013 07:32:29 -0700 (PDT) X-Received: by 10.52.116.229 with SMTP id jz5mr13027186vdb.103.1369665149915; Mon, 27 May 2013 07:32:29 -0700 (PDT) Received: from mail-vb0-x233.google.com (mail-vb0-x233.google.com [2607:f8b0:400c:c02::233]) by mx.google.com with ESMTPS id tq4si16849973vdc.144.2013.05.27.07.32.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:29 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::233 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400c:c02::233; Received: by mail-vb0-f51.google.com with SMTP id x16so4604222vbf.24 for ; Mon, 27 May 2013 07:32:29 -0700 (PDT) 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 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 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: ALoCoQmR3DYDBMAgsd8j6S3PkFuGwDZDcclbe4amyoryYekJDw3mTxvo+jpE/cQpxSQka481jjms X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::231 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-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)) { /*