From patchwork Mon May 20 06:33:26 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: 17048 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 57A7020F5A for ; Mon, 20 May 2013 06:34:21 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id k14sf3304724qcv.5 for ; Sun, 19 May 2013 23:33:33 -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=E4zhTuAksJxv/zv4LO23x4QWEYPE5pkBE0CvzVe44m4=; b=R3jOy4NJ4REQ1kCx+hnGgcxepAVwQpby/x2NJfVJgRZls/k2eGE3IrOTndidwnXDE6 SVvE488i5+xuyA3GbQAUE75q5INO4W2bbQnl1R+FBXoYLl/UhLBGMu9IEdRUxYogBVvR +faXAnF/265UxEJG30yhp6B+xzi7TDl9sPSpvuB7wCa7t9mN8hqcIPfeDP8VtTuQBhiL 2Gq0k0wm7gfCGe448101xLgsa2iT0zRg34TSXf4VpfIKalOCw0xzP/1oVCXFsrKl4zr2 KGPqxexSxG2plfw/laK+OgfqGpsrOYZOqnk4IOhZlTO4zehJoBpQ0ydP9WYnBdp/FqTL xUAg== X-Received: by 10.236.189.241 with SMTP id c77mr31222647yhn.17.1369031613700; Sun, 19 May 2013 23:33:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.166 with SMTP id ej6ls2683233qeb.37.gmail; Sun, 19 May 2013 23:33:33 -0700 (PDT) X-Received: by 10.58.243.102 with SMTP id wx6mr24052374vec.26.1369031613564; Sun, 19 May 2013 23:33:33 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id of10si2251117vcb.11.2013.05.19.23.33.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id hr11so5017188vcb.33 for ; Sun, 19 May 2013 23:33:33 -0700 (PDT) X-Received: by 10.58.187.164 with SMTP id ft4mr19563967vec.5.1369031613394; Sun, 19 May 2013 23:33:33 -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 c10csp69542vcs; Sun, 19 May 2013 23:33:32 -0700 (PDT) X-Received: by 10.66.157.130 with SMTP id wm2mr57062786pab.156.1369031612465; Sun, 19 May 2013 23:33:32 -0700 (PDT) Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [2607:f8b0:400e:c01::233]) by mx.google.com with ESMTPS id bs5si15622998pbb.338.2013.05.19.23.33.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:32 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c01::233 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400e:c01::233; Received: by mail-pb0-f51.google.com with SMTP id jt11so3972194pbb.24 for ; Sun, 19 May 2013 23:33:32 -0700 (PDT) X-Received: by 10.69.3.65 with SMTP id bu1mr58794660pbd.107.1369031612098; Sun, 19 May 2013 23:33:32 -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.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:31 -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 4/6] ARM: spear: use the core cpu hotplug functions Date: Mon, 20 May 2013 12:03:26 +0530 Message-Id: <1369031608-27347-5-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: ALoCoQkK1qLUrigeSDcwPj0wqXK+4mM12Sby+2cVRHQRLGPrVr3/LrGNRpTQnmK8rK0pxWfqdiKG X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 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-spear/hotplug.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/arch/arm/mach-spear/hotplug.c b/arch/arm/mach-spear/hotplug.c index d97749c..988a9a6 100644 --- a/arch/arm/mach-spear/hotplug.c +++ b/arch/arm/mach-spear/hotplug.c @@ -15,42 +15,7 @@ #include #include #include - -static inline void cpu_enter_lowpower(void) -{ - unsigned int v; - - 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, #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", "memory"); -} - -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 spear13xx_do_lowpower(unsigned int cpu, int *spurious) {