From patchwork Mon May 20 06:33:28 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: 17050 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 36F1E20F5A for ; Mon, 20 May 2013 06:34:29 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id bs12sf3480749qab.3 for ; Sun, 19 May 2013 23:33:41 -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=hrMw+OVUewO6dEkZTJ+ZS5KqyOZhlWQkTTf4w6XCHMg=; b=XV1yWLsNT86epwhERfHNaCNwjwH8Ur5Q4KDGisi9rWJhRpESt/k8NQemX120eEH7WF SuEeVKtNW26LAjNohHqWmIx5zAYfGkNi3umyh63lTVqoIoP9HnTsLrS3cV7tCCo7BY1V VMDjXuRk5mGodlPN7rCq+RJDnalpYGRVbASN7gsm8IUK5UdfBuIm/EszLbqdQ57r8rG+ vEqWGOVkrHOBOlx2T2uCju6ZUJ87NuzjYBTDXgHNt6OVvQraxogIVuonmopsxNyNiDPt LWNZURdpXw25BbizJT8kECm7VFCkoHl0SC3p9L9jlBF35ozHq0a9eQ1n4ATrxg4QoGck MCxA== X-Received: by 10.224.200.202 with SMTP id ex10mr34228941qab.8.1369031621576; Sun, 19 May 2013 23:33:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.101.34 with SMTP id fd2ls2561942qeb.7.gmail; Sun, 19 May 2013 23:33:41 -0700 (PDT) X-Received: by 10.220.202.197 with SMTP id ff5mr33335201vcb.3.1369031621435; Sun, 19 May 2013 23:33:41 -0700 (PDT) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [2607:f8b0:400c:c01::232]) by mx.google.com with ESMTPS id q5si11135061vcw.15.2013.05.19.23.33.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:41 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::232 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:c01::232; Received: by mail-ve0-f178.google.com with SMTP id d10so3856032vea.23 for ; Sun, 19 May 2013 23:33:41 -0700 (PDT) X-Received: by 10.52.163.207 with SMTP id yk15mr728337vdb.42.1369031621282; Sun, 19 May 2013 23:33:41 -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 c10csp69549vcs; Sun, 19 May 2013 23:33:40 -0700 (PDT) X-Received: by 10.68.78.37 with SMTP id y5mr58667683pbw.28.1369031620386; Sun, 19 May 2013 23:33:40 -0700 (PDT) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx.google.com with ESMTPS id wt9si15918926pab.298.2013.05.19.23.33.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.220.53; Received: by mail-pa0-f53.google.com with SMTP id kq12so5333715pab.26 for ; Sun, 19 May 2013 23:33:40 -0700 (PDT) X-Received: by 10.68.225.170 with SMTP id rl10mr16003199pbc.152.1369031620031; Sun, 19 May 2013 23:33:40 -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.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:39 -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 6/6] ARM: EXYNOS: use the core cpu hotplug functions Date: Mon, 20 May 2013 12:03:28 +0530 Message-Id: <1369031608-27347-7-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: ALoCoQmEk/qK9lQP47udVjmBdXmOVAmjGI+AJk0eHD1pDCM3zaKnKRACP1wKClMHIubbjsEhfn42 X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::232 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, Exynos-4 is having Cortex-A9, remove the functions from the platform code. Signed-off-by: Sanjay Singh Rawat --- arch/arm/mach-exynos/hotplug.c | 40 ++-------------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c index af90cfa..3489760 100644 --- a/arch/arm/mach-exynos/hotplug.c +++ b/arch/arm/mach-exynos/hotplug.c @@ -21,30 +21,10 @@ #include #include +#include #include "common.h" -static inline void cpu_enter_lowpower_a9(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, %3\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), "Ir" (0x40) - : "cc"); -} - static inline void cpu_enter_lowpower_a15(void) { unsigned int v; @@ -74,22 +54,6 @@ static inline void cpu_enter_lowpower_a15(void) dsb(); } -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, %2\n" - " mcr p15, 0, %0, c1, c0, 1\n" - : "=&r" (v) - : "Ir" (CR_C), "Ir" (0x40) - : "cc"); -} - static inline void platform_do_lowpower(unsigned int cpu, int *spurious) { for (;;) { @@ -144,7 +108,7 @@ void __ref exynos_cpu_die(unsigned int cpu) if ((primary_part & 0xfff0) == 0xc0f0) cpu_enter_lowpower_a15(); else - cpu_enter_lowpower_a9(); + cpu_enter_lowpower(); platform_do_lowpower(cpu, &spurious);