From patchwork Mon May 27 14:32:44 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: 17230 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0EEDC238E8 for ; Mon, 27 May 2013 14:34:21 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id w15sf6973405vbf.3 for ; Mon, 27 May 2013 07:33:16 -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=2gjf4kIR0nkX7Z2JrAR3dEbvooU1dvsQJI127vXtnwo=; b=WbVQj8wtMESaw0JxjZTsr23j/LPerEfZhWTuY4rQO1cyiO3c1ccesSMPQFz4zgUyEE b4+UVofEq3ILjBiODbaPeMxgUB3nNEvY6R7eP4q+cKcGzxbTYw6Vosw5fgHpjbd2SO1j +hPXZKm8EOORerVaz8xFiAz6/gkksRClAj2kLTNl2SXd9rSLvwsyXY5MCoEKzpyzhJ32 prETsuOvqvanh497HS8xYVHG1MXNT3NrVcjO9oRtynGeiTBK3kJrLyQYYy03V3ev3C5v W6aaRmZTqc50iLzHiM7705Tbwsy51XKGzu8OmGI5g7WWD68eIHjDEeqdrH2uyVYEVxih M/8Q== X-Received: by 10.236.70.170 with SMTP id p30mr15362204yhd.5.1369665196410; Mon, 27 May 2013 07:33:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.109.5 with SMTP id ho5ls3106526qeb.29.gmail; Mon, 27 May 2013 07:33:16 -0700 (PDT) X-Received: by 10.52.33.75 with SMTP id p11mr12810916vdi.116.1369665196289; Mon, 27 May 2013 07:33:16 -0700 (PDT) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [2607:f8b0:400c:c01::22a]) by mx.google.com with ESMTPS id ra6si11328401vec.8.2013.05.27.07.33.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:16 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22a 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:c01::22a; Received: by mail-ve0-f170.google.com with SMTP id 15so5140853vea.15 for ; Mon, 27 May 2013 07:33:16 -0700 (PDT) X-Received: by 10.220.192.3 with SMTP id do3mr15416960vcb.16.1369665196196; Mon, 27 May 2013 07:33:16 -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 jj7csp2222vcb; Mon, 27 May 2013 07:33:15 -0700 (PDT) X-Received: by 10.52.176.10 with SMTP id ce10mr13031862vdc.74.1369665195863; Mon, 27 May 2013 07:33:15 -0700 (PDT) Received: from mail-ve0-x235.google.com (mail-ve0-x235.google.com [2607:f8b0:400c:c01::235]) by mx.google.com with ESMTPS id gr7si16856731vdc.129.2013.05.27.07.33.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:15 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::235 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400c:c01::235; Received: by mail-ve0-f181.google.com with SMTP id db10so3337593veb.12 for ; Mon, 27 May 2013 07:33:15 -0700 (PDT) X-Received: by 10.52.33.75 with SMTP id p11mr12810896vdi.116.1369665195757; Mon, 27 May 2013 07:33:15 -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.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:14 -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 7/8] ARM: msm: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:44 +0530 Message-Id: <1369665166-13049-8-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: ALoCoQnszXgW8zQTICu0jQdqAsuDSkOzri23l4dpzxbc+tKrT+iaDeahoVGkN3FVr8/+W7nP35h6 X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22a 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 Acked-by: David Brown Acked-by: David Brown --- arch/arm/mach-msm/hotplug.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-msm/hotplug.c b/arch/arm/mach-msm/hotplug.c index 326a872..1b03e5f 100644 --- a/arch/arm/mach-msm/hotplug.c +++ b/arch/arm/mach-msm/hotplug.c @@ -26,13 +26,8 @@ static inline void platform_do_lowpower(unsigned int cpu) { /* Just enter wfi for now. TODO: Properly shut off the cpu. */ for (;;) { - /* - * here's the WFI - */ - asm("wfi" - : - : - : "memory", "cc"); + /* enter WFI mode */ + cpu_do_idle(); if (pen_release == cpu_logical_map(cpu)) { /*