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: 2620321 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 2F61C3FDBC for ; Mon, 27 May 2013 14:37:11 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyVn-0001co-2g; Mon, 27 May 2013 14:35:00 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyUp-0001TA-MU; Mon, 27 May 2013 14:33:59 +0000 Received: from mail-ve0-x231.google.com ([2607:f8b0:400c:c01::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UgyUL-0001NB-MS for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2013 14:33:30 +0000 Received: by mail-ve0-f177.google.com with SMTP id cz10so428532veb.22 for ; Mon, 27 May 2013 07:33:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=JjiUKF22xtbmV6ui+dryIWHeGDupVqBr5MTyIZRaGO8=; b=FkubX40sa2Q7TuCEUMR9Sm6NodpO7UaNwO/rClv0HfY/FXn6EzZM+AL9aU4hVgLs41 V+iwmRU3XFGymX9KSWABkajGoxFTaLy5h5CKdAzn56fOC18nyzfNoEkDWVd5/sj6Twcg yxpLLlgmRnbbjLOvGzDHuYLx+v3oaafoy8TnBsZuyEB/iUntaosCMC9d/wcbIiO8Lwss 1VTInr+NHgX/mjGkFmMbTzI+yTRDZOipcdEr6km37Y0xxceKrkEI5XtRIdkXzOSKQVAC 1GOmrDOeNgSQX8tfITkEHtfxnHbCUkh/kfIgpfl70zxjCnnX2+Tnl6WYS3h71/Vqr6NU riQQ== 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 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: ALoCoQm7wV6Rzboy9xu/efw2c1iuTDqSeyv7c+SJIzjhjKNKF1kRTgH1JxE5ZLKLLWqn6EDAVSCb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130527_103329_845399_4F81A145 X-CRM114-Status: GOOD ( 10.51 ) X-Spam-Score: -1.1 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [203.247.149.152 listed in dnsbl.sorbs.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, linux@arm.linux.org.uk, arnd@arndb.de, srinidhi.kasagar@stericsson.com, nico@linaro.org, michal.simek@xilinx.com, Sanjay Singh Rawat , patches@linaro.org, linaro-dev@lists.linaro.org, davidb@codeaurora.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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