From patchwork Wed Aug 20 20:41:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 35714 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8648020351 for ; Wed, 20 Aug 2014 20:43:24 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id va2sf36824893obc.3 for ; Wed, 20 Aug 2014 13:43:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=TxhNK49MvKpSjhDELsf5LAV1or5U3h290MK67jq3TfI=; b=SffwaeDeUoXvp8+fkm7bIbDr2p15+N1/xS4cGXGX9+noij13rGQxXCNN/TQXSV712V 8x53yMK4TEOY7/jSgAcEqupE2AVTGrP/yQVyq4CGAINr0tnsI4qMkU3OACM87QKaCAvP JxifjwiKLz55S+RuSUY3UiQ9wR5z9ahqCFfzIVssnDIiBbEA5cQABaHGq5UQoN4dPHna Dq71RvRdNroQsPXLzfmZa1NJzQ0rg1lRdgF1waGbMgf6GX+H48OgsJlXpBHKFFVHTKVz Mj+4X1s2AVxyhWycDp1GhyZ3VLXtwYGQG9B/Exi9m+G2XCCEzWaOuC27Fd5qiUhuqR6k GeRQ== X-Gm-Message-State: ALoCoQkqQxSi89SnjQ5CAwAa3e1go7IX2GSnpLH1BrjgHhtPL0YuZ3yU3Qm04Rm381kvf9ogGjMx X-Received: by 10.50.153.98 with SMTP id vf2mr8140362igb.5.1408567404183; Wed, 20 Aug 2014 13:43:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.136 with SMTP id d8ls454861qgd.39.gmail; Wed, 20 Aug 2014 13:43:24 -0700 (PDT) X-Received: by 10.52.240.169 with SMTP id wb9mr204064vdc.81.1408567404031; Wed, 20 Aug 2014 13:43:24 -0700 (PDT) Received: from mail-vc0-x22b.google.com (mail-vc0-x22b.google.com [2607:f8b0:400c:c03::22b]) by mx.google.com with ESMTPS id ti11si11406377vdb.10.2014.08.20.13.43.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 13:43:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22b as permitted sender) client-ip=2607:f8b0:400c:c03::22b; Received: by mail-vc0-f171.google.com with SMTP id hq11so9858847vcb.30 for ; Wed, 20 Aug 2014 13:43:23 -0700 (PDT) X-Received: by 10.221.5.137 with SMTP id og9mr38583814vcb.18.1408567403940; Wed, 20 Aug 2014 13:43:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp82328vcb; Wed, 20 Aug 2014 13:43:23 -0700 (PDT) X-Received: by 10.66.66.193 with SMTP id h1mr51827645pat.93.1408567403045; Wed, 20 Aug 2014 13:43:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vx7si11661863pab.147.2014.08.20.13.43.22 for ; Wed, 20 Aug 2014 13:43:23 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753157AbaHTUmw (ORCPT + 24 others); Wed, 20 Aug 2014 16:42:52 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:61832 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753076AbaHTUmr (ORCPT ); Wed, 20 Aug 2014 16:42:47 -0400 Received: by mail-pd0-f176.google.com with SMTP id y10so12273672pdj.35 for ; Wed, 20 Aug 2014 13:42:42 -0700 (PDT) X-Received: by 10.70.34.235 with SMTP id c11mr44925124pdj.76.1408567361716; Wed, 20 Aug 2014 13:42:41 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id e2sm35429386pdk.54.2014.08.20.13.42.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 20 Aug 2014 13:42:40 -0700 (PDT) From: Soren Brinkmann To: Michal Simek , Russell King , "Rafael J. Wysocki" , Daniel Lezcano , Rob Herring , Mark Rutland Cc: =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Pawel Moll , Ian Campbell , Kumar Gala Subject: [PATCH 5/9] ARM: zynq: Remove invalidate cache for cpu die Date: Wed, 20 Aug 2014 13:41:51 -0700 Message-Id: <1408567315-28479-6-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 2.0.1.1.gfbfc394 In-Reply-To: <1408567315-28479-1-git-send-email-soren.brinkmann@xilinx.com> References: <1408567315-28479-1-git-send-email-soren.brinkmann@xilinx.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: linux-kernel-owner@vger.kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22b as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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