From patchwork Mon Jun 17 13:39:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Jensen X-Patchwork-Id: 2733481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A6308C0AB1 for ; Mon, 17 Jun 2013 13:40:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0340D202F4 for ; Mon, 17 Jun 2013 13:40:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B6CF92027D for ; Mon, 17 Jun 2013 13:40:53 +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 1UoZfP-00013X-Sy; Mon, 17 Jun 2013 13:40:20 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UoZfG-0000kg-V8; Mon, 17 Jun 2013 13:40:10 +0000 Received: from mail-lb0-f172.google.com ([209.85.217.172]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UoZfE-0000iP-3n for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2013 13:40:08 +0000 Received: by mail-lb0-f172.google.com with SMTP id v20so2567646lbc.31 for ; Mon, 17 Jun 2013 06:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=hpcFygLXx0YPILRZRXZ1dCgRfhlqXsnDh0csN/NWoIM=; b=IvtVKpDeuHlgcX3r1l+iYWFAhs23OnxMzTeNELmu1q6Tm2ATGkAWFCnb80D7DTYD17 y5pHESCnZiBloqfieTMqpdXIqhdvY3lIgDljpqT5uM7wJ6Eqkhrb3Sd5VRFGQkeaFi25 ftEoxEOqooXlzILWcyiCVt5+nd+eV2c8F+yx2Ljq4y/AMB71pUdu8YlqcaOvrPgCiY6A Um5q9QJTBO9VIxr1lroDNBn8Z9cJDcIM0asls8SVgOlVKL07f7QVo3iz80ePFVRrvgem Sj9VlK1tQ5Nj6PFVUbUVBlBFQDziZ4mLEyPlJ1CqyDCCFOj/1WGPRt9Wi4h0RJHHxukR mapw== X-Received: by 10.152.3.74 with SMTP id a10mr6768952laa.74.1371476385334; Mon, 17 Jun 2013 06:39:45 -0700 (PDT) Received: from localhost.localdomain (static-213-115-41-10.sme.bredbandsbolaget.se. [213.115.41.10]) by mx.google.com with ESMTPSA id 8sm5470817lbq.4.2013.06.17.06.39.42 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 17 Jun 2013 06:39:44 -0700 (PDT) From: Jonas Jensen To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: mm: cpu_fa526_do_idle: remove WFI Date: Mon, 17 Jun 2013 15:39:20 +0200 Message-Id: <1371476360-8751-1-git-send-email-jonas.jensen@gmail.com> X-Mailer: git-send-email 1.7.2.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130617_094008_349570_B5988020 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) Cc: ulli.kroll@googlemail.com, arm@kernel.org, linux@arm.linux.org.uk, linux-kernel@vger.kernel.org, Jonas Jensen 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 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As it was already suggested by Russell King and Arnd Bergmann ( https://lkml.org/lkml/2013/5/16/133 ), moxart and gemini seem to be the only platforms using CPU_FA526, and instead of pointing arm_pm_idle to an empty function from platform code, it makes sense to remove WFI code from the processor specific idle function. Note: moxart boots and prints to UART without this patch, but input is broken. Signed-off-by: Jonas Jensen Acked-by: Arnd Bergmann --- arch/arm/mm/proc-fa526.S | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/arm/mm/proc-fa526.S b/arch/arm/mm/proc-fa526.S index d217e97..85280b1 100644 --- a/arch/arm/mm/proc-fa526.S +++ b/arch/arm/mm/proc-fa526.S @@ -81,9 +81,7 @@ ENDPROC(cpu_fa526_reset) */ .align 4 ENTRY(cpu_fa526_do_idle) - mcr p15, 0, r0, c7, c0, 4 @ Wait for interrupt - mov pc, lr - + nop ENTRY(cpu_fa526_dcache_clean_area) 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry