From patchwork Tue Sep 2 21:19:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 4828451 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 084F09F32F for ; Tue, 2 Sep 2014 21:23:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 360F42017D for ; Tue, 2 Sep 2014 21:23:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 63BB320131 for ; Tue, 2 Sep 2014 21:23:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XOvV2-0004Z9-Qp; Tue, 02 Sep 2014 21:20:24 +0000 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XOvUa-0003Bt-0w for linux-arm-kernel@lists.infradead.org; Tue, 02 Sep 2014 21:19:56 +0000 Received: by mail-pd0-f176.google.com with SMTP id w10so120286pde.35 for ; Tue, 02 Sep 2014 14:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=TcdIjzC9wMC7hqZlYU3GaGYCMM6nGW/AoZgwKJTmzZM=; b=E0qLu/p7kSyZODYlTie0FoECgEHvHLMck418CPe4yKxEXaCz7NnHnXQUjhlFwPay5N 0o5vtmqD6o3ubyHb+x87Ul+wNwvPkYiPXpeE4aYpJMMrMzXrBzdE1cP3wHESsQdfQ7wJ xM1ThqRG5Lzy5EkKVY1+v1JtEnKLM8TAiYAU39NfGkifGNawT/NhjqC6PG/jdP0j/FLK c2t2vc2aSKEohca44EX1aiq+k+YgDP1cDsdYghDXGqp5uRXUfucrYEa+fkRnjIv9PC69 WSrX9RBfYGqqaefzk0qsKQi9JYr/fB9cBeKGhVdGIwwLx2jOnc08hnHv7Ut76DWb91wv aHnQ== X-Received: by 10.70.128.137 with SMTP id no9mr16177342pdb.143.1409692774709; Tue, 02 Sep 2014 14:19:34 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id o2sm6813390pde.30.2014.09.02.14.19.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Sep 2014 14:19:33 -0700 (PDT) From: Soren Brinkmann To: Michal Simek , Daniel Lezcano Subject: [PATCH v2 5/9] ARM: zynq: Remove invalidate cache for cpu die Date: Tue, 2 Sep 2014 14:19:10 -0700 Message-Id: <1409692754-13437-6-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 2.1.0.1.g27b9230 In-Reply-To: <1409692754-13437-1-git-send-email-soren.brinkmann@xilinx.com> References: <1409692754-13437-1-git-send-email-soren.brinkmann@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140902_141956_084979_60AB4B86 X-CRM114-Status: GOOD ( 11.14 ) X-Spam-Score: -0.7 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , linux-pm@vger.kernel.org, Ian Campbell , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Rob Herring , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Kumar Gala , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 From: Daniel Lezcano As there is no Power management unit on this board, it is not possible to power down a core, just WFI is allowed. There is no point to invalidate the cache and exit coherency. Signed-off-by: Daniel Lezcano Reviewed-and-tested-by: Soren Brinkmann --- arch/arm/mach-zynq/hotplug.c | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/arch/arm/mach-zynq/hotplug.c b/arch/arm/mach-zynq/hotplug.c index 5052c70326e4..366f46c91365 100644 --- a/arch/arm/mach-zynq/hotplug.c +++ b/arch/arm/mach-zynq/hotplug.c @@ -10,35 +10,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include -#include -#include - -#include -#include -#include "common.h" - -static inline void zynq_cpu_enter_lowpower(void) -{ - unsigned int v; - - flush_cache_all(); - asm volatile( - " mcr p15, 0, %1, c7, c5, 0\n" - " dsb\n" - /* - * Turn off coherency - */ - " mrc p15, 0, %0, c1, c0, 1\n" - " bic %0, %0, #0x40\n" - " mcr p15, 0, %0, c1, c0, 1\n" - " mrc p15, 0, %0, c1, c0, 0\n" - " bic %0, %0, %2\n" - " mcr p15, 0, %0, c1, c0, 0\n" - : "=&r" (v) - : "r" (0), "Ir" (CR_C) - : "cc"); -} +#include /* * platform-specific code to shutdown a CPU @@ -47,8 +19,6 @@ static inline void zynq_cpu_enter_lowpower(void) */ void zynq_platform_cpu_die(unsigned int cpu) { - zynq_cpu_enter_lowpower(); - /* * there is no power-control hardware on this platform, so all * we can do is put the core into WFI; this is safe as the calling