From patchwork Tue Jun 18 08:11:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Jensen X-Patchwork-Id: 2739791 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29E509F472 for ; Tue, 18 Jun 2013 08:12:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1720120187 for ; Tue, 18 Jun 2013 08:12:18 +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 D84102014C for ; Tue, 18 Jun 2013 08:12:16 +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 1Uor1R-0005up-Ow; Tue, 18 Jun 2013 08:12:14 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uor1P-0007gN-3H; Tue, 18 Jun 2013 08:12:11 +0000 Received: from mail-lb0-f173.google.com ([209.85.217.173]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uor1L-0007fs-Gb for linux-arm-kernel@lists.infradead.org; Tue, 18 Jun 2013 08:12:08 +0000 Received: by mail-lb0-f173.google.com with SMTP id v1so3348674lbd.4 for ; Tue, 18 Jun 2013 01:11:43 -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=NNzzc1ZvLr/DRFZNTrF8DJrVkSnaNKu5q3zhl7s1KAw=; b=z/+7CrxYEvzogpieckxNa1gjjKQznRGSjg1RVanvWjz8YxVf699ZghypoErti+uGJ8 1lrVVgOxa8jyddYJg8L4UPDfy9zQJGikK9pWaOSh1WpwrKmScv4HRqhl9HZUZ1O9IdmS CLhhQdTK2t6mo/AYWirhnVnXJZ7fHSCWgXWyeUim/i2bWngKEZoa1svxwfBubjoB/Fnn hDXpr4Q3U+92OUIa5hJ814e2L5kQc6N24KOrWmJbzpaDy9HPv2BK5hM5t8mlyQslG6F1 uTEbSnEeOdVRlMBG9KOyc+tTy6a5+qhebdPJ2TrGAvUzeOn3skGh6Mk9A6AohnwCqIuy KymQ== X-Received: by 10.112.72.67 with SMTP id b3mr557464lbv.35.1371543103384; Tue, 18 Jun 2013 01:11:43 -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 s3sm6718869lbs.14.2013.06.18.01.11.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 18 Jun 2013 01:11:42 -0700 (PDT) From: Jonas Jensen To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] ARM: mm: cpu_fa526_do_idle: remove WFI Date: Tue, 18 Jun 2013 10:11:05 +0200 Message-Id: <1371543065-5843-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-20130618_041207_695969_4E94ED4C X-CRM114-Status: GOOD ( 12.07 ) X-Spam-Score: -2.7 (--) Cc: linux@arm.linux.org.uk, ulli.kroll@googlemail.com, linux-kernel@vger.kernel.org, Jonas Jensen , arm@kernel.org, kaloz@openwrt.org, florian@openwrt.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 X-Spam-Status: No, score=-5.3 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. Applies to arm-soc/for-next. Changes since v1: 1. remove WFI but make sure cpu_fa526_do_idle do not fall through to cpu_fa526_dcache_clean_area Note: moxart boots and prints to UART without this patch, but input is broken. Signed-off-by: Jonas Jensen --- arch/arm/mm/proc-fa526.S | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/mm/proc-fa526.S b/arch/arm/mm/proc-fa526.S index d217e97..aaeb6c1 100644 --- a/arch/arm/mm/proc-fa526.S +++ b/arch/arm/mm/proc-fa526.S @@ -81,7 +81,6 @@ ENDPROC(cpu_fa526_reset) */ .align 4 ENTRY(cpu_fa526_do_idle) - mcr p15, 0, r0, c7, c0, 4 @ Wait for interrupt mov pc, lr