From patchwork Mon May 27 14:32:40 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: 17226 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-bk0-f72.google.com (mail-bk0-f72.google.com [209.85.214.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7FC62238E8 for ; Mon, 27 May 2013 14:33:52 +0000 (UTC) Received: by mail-bk0-f72.google.com with SMTP id jk13sf3109110bkc.7 for ; Mon, 27 May 2013 07:32:47 -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=WMU/v6D+J00kb8LPVDTgG7ofubOTh1SPOfXp8C8/f+E=; b=cqQC8lqWEunHF0oC0qE/VvDRz5pK+UaXzu5SbzSR/5DXpW2xWLsATjtP85bj7SgmGd 4g10OaqzoLDgly5SaAvzPFu/TmpeFrcWf/eeADKEWFpgrYmMTHTTLoldgUIJgzg7YCF8 5jP7ej7N41bBGc2orBttiQpFKc7xFT8mVP8pEsodZuPEuOtxSeDJH07lZhwdoAi9Rsvs GGMlaSueBpmYJs6UMmt3PkazE+IS4pANS1p1eGxEef7kY1/aRIBJEnAPwT69KRQuDdsG naxAYDX51srhpKWWziRfTdqADuXDAvFssXduVlVXsFwzE7o4zFVY1vK+uN0JCOAGeofV 2z9w== X-Received: by 10.180.21.226 with SMTP id y2mr3641961wie.5.1369665167052; Mon, 27 May 2013 07:32:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.210.235 with SMTP id mx11ls862748wic.52.canary; Mon, 27 May 2013 07:32:47 -0700 (PDT) X-Received: by 10.180.74.10 with SMTP id p10mr8537468wiv.39.1369665166993; Mon, 27 May 2013 07:32:46 -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 y12si4284805wiv.82.2013.05.27.07.32.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:46 -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 15so5207335vea.29 for ; Mon, 27 May 2013 07:32:45 -0700 (PDT) X-Received: by 10.52.233.34 with SMTP id tt2mr12960050vdc.70.1369665165912; Mon, 27 May 2013 07:32:45 -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 jj7csp2207vcb; Mon, 27 May 2013 07:32:45 -0700 (PDT) X-Received: by 10.220.176.71 with SMTP id bd7mr15216508vcb.12.1369665165572; Mon, 27 May 2013 07:32:45 -0700 (PDT) Received: from mail-vb0-x22f.google.com (mail-vb0-x22f.google.com [2607:f8b0:400c:c02::22f]) by mx.google.com with ESMTPS id bs2si16882855veb.5.2013.05.27.07.32.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:45 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22f is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400c:c02::22f; Received: by mail-vb0-f47.google.com with SMTP id x13so4641618vbb.20 for ; Mon, 27 May 2013 07:32:45 -0700 (PDT) X-Received: by 10.220.194.5 with SMTP id dw5mr15321616vcb.47.1369665165451; Mon, 27 May 2013 07:32:45 -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.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:44 -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 3/8] ARM: SPEAr: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:40 +0530 Message-Id: <1369665166-13049-4-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: ALoCoQk2s84I0YBZPXi/C5CwUfvBI31F1yH/RmJRRbjUVZmn0A1VgGzifVe2rlxLcvAStDji1vjN 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: Viresh Kumar --- arch/arm/mach-spear/hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-spear/hotplug.c b/arch/arm/mach-spear/hotplug.c index d97749c..6dbd3dc 100644 --- a/arch/arm/mach-spear/hotplug.c +++ b/arch/arm/mach-spear/hotplug.c @@ -55,7 +55,8 @@ static inline void cpu_leave_lowpower(void) static inline void spear13xx_do_lowpower(unsigned int cpu, int *spurious) { for (;;) { - wfi(); + /* enter WFI mode */ + cpu_do_idle(); if (pen_release == cpu) { /*