From patchwork Mon May 27 14:32:43 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: 17229 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6068D238E8 for ; Mon, 27 May 2013 14:34:15 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id b4sf9313890qen.11 for ; Mon, 27 May 2013 07:33:11 -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=JjiUKF22xtbmV6ui+dryIWHeGDupVqBr5MTyIZRaGO8=; b=Z7o61Mza71enClPDVHemF+qjA4D7xVhxF/ByGFm9aDmIX1jsm2urSYA7ee2w+vTkhP q4FuHfce6STwylM7Lr1AWLjXMxXYl3vlhiVjr22Kb6GMHi9cWUXWakPme+IJFHMErWsn LsVZHDEc3jlRCMBfHXJdO6oTD6j43fiGf4FQ5CkEkMOliS2QQI3zwycpfXQyf5auBRGu gKW+nEUsGAS1yu3KQX5LY3wz2UswNBSM6OVgclF0fiCDzOBwuj4X8v40aiqOYWN2XIA5 NhjJ9QGvz4K64tJ6xqPg47bYiYqu+j4DPKe+5N7FLhj55abdEWVgviu9PmUoKhx4KIfn pIQw== X-Received: by 10.236.128.207 with SMTP id f55mr15424569yhi.28.1369665191012; Mon, 27 May 2013 07:33:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.17.134 with SMTP id o6ls291529qed.33.gmail; Mon, 27 May 2013 07:33:10 -0700 (PDT) X-Received: by 10.220.11.1 with SMTP id r1mr15541004vcr.14.1369665190884; Mon, 27 May 2013 07:33:10 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id l10si16877597vet.10.2013.05.27.07.33.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id lf11so4709507vcb.40 for ; Mon, 27 May 2013 07:33:10 -0700 (PDT) X-Received: by 10.220.112.16 with SMTP id u16mr15556676vcp.40.1369665190812; Mon, 27 May 2013 07:33:10 -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 jj7csp2220vcb; Mon, 27 May 2013 07:33:10 -0700 (PDT) X-Received: by 10.180.21.193 with SMTP id x1mr8450413wie.31.1369665189819; Mon, 27 May 2013 07:33:09 -0700 (PDT) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [2607:f8b0:400c:c01::232]) by mx.google.com with ESMTPS id fq4si4290026wib.74.2013.05.27.07.33.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:09 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::232 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400c:c01::232; Received: by mail-ve0-f178.google.com with SMTP id pb11so2993835veb.23 for ; Mon, 27 May 2013 07:33:08 -0700 (PDT) X-Received: by 10.220.191.129 with SMTP id dm1mr15500197vcb.54.1369665188349; Mon, 27 May 2013 07:33:08 -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.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 07:33:07 -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 6/8] ARM: ux500: use generic cpu idle function for wfi Date: Mon, 27 May 2013 20:02:43 +0530 Message-Id: <1369665166-13049-7-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: ALoCoQlbyG9Thc2yfjf8H0C1yqi0QsPrXcrr27e0/UsI1E7RIvTOM24NRTP75NeK7vnXzwu45C0N X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 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: srinidhi kasagar --- arch/arm/mach-ux500/hotplug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ux500/hotplug.c b/arch/arm/mach-ux500/hotplug.c index 2bc00b0..f4ded92 100644 --- a/arch/arm/mach-ux500/hotplug.c +++ b/arch/arm/mach-ux500/hotplug.c @@ -25,8 +25,9 @@ void __ref ux500_cpu_die(unsigned int cpu) { /* directly enter low power state, skipping secure registers */ for (;;) { - __asm__ __volatile__("dsb\n\t" "wfi\n\t" - : : : "memory"); + /* enter WFI mode */ + cpu_do_idle(); + if (pen_release == cpu_logical_map(cpu)) { /* * OK, proper wakeup, we're done