From patchwork Mon May 27 14:32:42 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: 17228 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CB440238E8 for ; Mon, 27 May 2013 14:34:05 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf9337697qen.10 for ; Mon, 27 May 2013 07:33:01 -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=3qZcBs7CSJh1ME913bxaylKTW5HYynBnBsvL7zk9ezg=; b=fjdOBFLL91L6X3yMiGBvfSY85wvsRIFWcDFrhxZALFewFkL8Y/9D/vK0QOPPI2tKAy zMrofGEGfdQDrrBzmQu/44noT7lfNSqoa4alLP1grvdAUiNfqvdoxiu3LBOFYw6jp/cu hABtyc6C9nRFCjPQTSBmudQX80OUPdewhOyVW1mfkVNvltoTnjjn92ZVKcV9S75zrf/i RG4Sr6HN7u7WWtzzIwfOQjI4p11F3Wnda24sMN/IDG6+///TbBW75nfLItD6A7mi3uF2 Y0LMUOo8kF/QEz6t4z1pFhQrhz8M2DA810E7IBRBPLrg67rc8SlpK7mCFXpPCkLmTuAZ Vf2A== X-Received: by 10.236.183.98 with SMTP id p62mr14723417yhm.3.1369665181451; Mon, 27 May 2013 07:33:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.34.205 with SMTP id b13ls2870551qej.62.gmail; Mon, 27 May 2013 07:33:01 -0700 (PDT) X-Received: by 10.52.0.102 with SMTP id 6mr13699696vdd.9.1369665181298; Mon, 27 May 2013 07:33:01 -0700 (PDT) Received: from mail-ve0-x236.google.com (mail-ve0-x236.google.com [2607:f8b0:400c:c01::236]) by mx.google.com with ESMTPS id ad7si16894041vdc.3.2013.05.27.07.33.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:01 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::236 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::236; Received: by mail-ve0-f182.google.com with SMTP id ox1so756754veb.27 for ; Mon, 27 May 2013 07:33:01 -0700 (PDT) X-Received: by 10.52.34.114 with SMTP id y18mr13075714vdi.56.1369665181214; Mon, 27 May 2013 07:33:01 -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 jj7csp2216vcb; Mon, 27 May 2013 07:33:00 -0700 (PDT) X-Received: by 10.220.114.203 with SMTP id f11mr15292174vcq.21.1369665180805; Mon, 27 May 2013 07:33:00 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id sa4si16857019vdc.127.2013.05.27.07.33.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id hr11so4671206vcb.19 for ; Mon, 27 May 2013 07:33:00 -0700 (PDT) X-Received: by 10.52.22.228 with SMTP id h4mr909823vdf.14.1369665180694; Mon, 27 May 2013 07:33:00 -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.53 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:32:59 -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 5/8] ARM: zynq: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:42 +0530 Message-Id: <1369665166-13049-6-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: ALoCoQneDnZlKiTGunCPIdjtHhPRNkMBC8OggxCMofyCM72eEMcrWlUMYt7conHmPNCuNOTDzTFS X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::236 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-zynq/hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-zynq/hotplug.c b/arch/arm/mach-zynq/hotplug.c index c89672b..ef0d65d 100644 --- a/arch/arm/mach-zynq/hotplug.c +++ b/arch/arm/mach-zynq/hotplug.c @@ -64,8 +64,8 @@ static inline void zynq_platform_do_lowpower(unsigned int cpu, int *spurious) * code will have already disabled interrupts */ for (;;) { - dsb(); - wfi(); + /* enter WFI mode */ + cpu_do_idle(); /* * Getting here, means that we have come out of WFI without