From patchwork Mon May 20 06:33:25 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: 17047 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 55A8520F5A for ; Mon, 20 May 2013 06:34:17 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id i3sf4977916vbh.4 for ; Sun, 19 May 2013 23:33:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=xt7PyNRU608Ivhre1ZLws4D9L06wQaMJQKt4Qo+Sg04=; b=WJhRnPV/X7EatFcziNv9AifV2Ke5SWs6cbsOMFoi1F6ZHQ2e59jZpdNq6uKHy8Gfpj a2bXMPK4b/ScKP4toagx56Xjk2mg0//0Ee6gf65nB0BHmZYQWua55fLXtr97XBoy2PQ4 ttsSVDTp0nTaPn8X4einWR6jldzzOqCwbviITOFbzMiQPubfmL0aqcdXaqsF+eOXBBNm n06DppqWGHrzNZa4e5F4iUzhrdS+IgXD3i1a1dob+PzVWwxuJevIPkpfIcp/sdrhT8jS tiHIBo8zW0fxHExo5Mwq0lEOOK9H3mIxYBrmrbUMlkCU7YQhFuJ1X7j9IX0gG1V7cIYw kseA== X-Received: by 10.224.165.130 with SMTP id i2mr34267686qay.2.1369031609638; Sun, 19 May 2013 23:33:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.62.166 with SMTP id z6ls2527874qer.71.gmail; Sun, 19 May 2013 23:33:29 -0700 (PDT) X-Received: by 10.52.158.67 with SMTP id ws3mr6262115vdb.73.1369031609510; Sun, 19 May 2013 23:33:29 -0700 (PDT) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [2607:f8b0:400c:c02::22c]) by mx.google.com with ESMTPS id sy4si4673517vdc.147.2013.05.19.23.33.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:29 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22c; Received: by mail-vb0-f44.google.com with SMTP id e13so3563890vbg.17 for ; Sun, 19 May 2013 23:33:29 -0700 (PDT) X-Received: by 10.220.92.195 with SMTP id s3mr33955754vcm.9.1369031609348; Sun, 19 May 2013 23:33:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp69539vcs; Sun, 19 May 2013 23:33:28 -0700 (PDT) X-Received: by 10.68.234.100 with SMTP id ud4mr59563189pbc.9.1369031608408; Sun, 19 May 2013 23:33:28 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id uh1si15944695pab.152.2013.05.19.23.33.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id lj1so5374128pab.18 for ; Sun, 19 May 2013 23:33:28 -0700 (PDT) X-Received: by 10.68.213.101 with SMTP id nr5mr58584101pbc.22.1369031608024; Sun, 19 May 2013 23:33:28 -0700 (PDT) Received: from srawat-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id ya4sm22764868pbb.24.2013.05.19.23.33.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:27 -0700 (PDT) From: Sanjay Singh Rawat To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linaro-dev@lists.linaro.org, Sanjay Singh Rawat Subject: [RFC PATCH 3/6] ARM: RealView: use the core cpu hotplug functions Date: Mon, 20 May 2013 12:03:25 +0530 Message-Id: <1369031608-27347-4-git-send-email-sanjay.rawat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369031608-27347-1-git-send-email-sanjay.rawat@linaro.org> References: <1369031608-27347-1-git-send-email-sanjay.rawat@linaro.org> X-Gm-Message-State: ALoCoQkglW8sitLIpKxtQ1DoLgWY6fIf5gNhJh9GOBDz8xkMARSMetFAyDNDmn50ebjPUMSovr72 X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Generic arm cpu hotplug related functions are moved to core hotplug code, remove the functions from the platform code. Signed-off-by: Sanjay Singh Rawat --- arch/arm/mach-realview/hotplug.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/arch/arm/mach-realview/hotplug.c b/arch/arm/mach-realview/hotplug.c index ac22dd4..a48cc71 100644 --- a/arch/arm/mach-realview/hotplug.c +++ b/arch/arm/mach-realview/hotplug.c @@ -14,42 +14,7 @@ #include #include - -static inline void cpu_enter_lowpower(void) -{ - unsigned int v; - - asm volatile( - " mcr p15, 0, %1, c7, c5, 0\n" - " mcr p15, 0, %1, c7, c10, 4\n" - /* - * Turn off coherency - */ - " mrc p15, 0, %0, c1, c0, 1\n" - " bic %0, %0, #0x20\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"); -} - -static inline void cpu_leave_lowpower(void) -{ - unsigned int v; - - asm volatile( "mrc p15, 0, %0, c1, c0, 0\n" - " orr %0, %0, %1\n" - " mcr p15, 0, %0, c1, c0, 0\n" - " mrc p15, 0, %0, c1, c0, 1\n" - " orr %0, %0, #0x20\n" - " mcr p15, 0, %0, c1, c0, 1\n" - : "=&r" (v) - : "Ir" (CR_C) - : "cc"); -} +#include static inline void platform_do_lowpower(unsigned int cpu, int *spurious) {