From patchwork Sat May 18 19:08:23 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: 17038 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f197.google.com (mail-gh0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DC82F24AAB for ; Sat, 18 May 2013 19:09:13 +0000 (UTC) Received: by mail-gh0-f197.google.com with SMTP id r20sf3351448ghr.8 for ; Sat, 18 May 2013 12:08: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=1wZiUXZiWWjZ/cF5jo09r5HOwOn+/WDbIfkwznBCGgc=; b=ib9cGmW5aWR2fMETj/Aff7axuomJRJzsagH+5GKcKwuu1s14ERFkZE+AWrAwclXShw yuJi3/eBsILYFlr1+sBgFQTX9oo+xVABfzUL5PCS6WtfW3/2JpgvfhlSI2/I8AcFB/uj XiZpazR/SGNMV1AY/Dya7qiT6YUFq/EEhw3X8ZioAG7pNy9yNVyNGJLb2KLNVrm2uAvA IqAAeCe7sUg0UUN0MgtM9Y9xndTkLh8PmvVlQ/BB9ZpVJqeEQ6R9Jai4VG4PMGdHuBGo VTwx3zX2zaxORvp9z8oXoigbK9EllyNpw8Jsc9iQ7UF6NTC5lklKtbIKwAPyFlo51+K5 8FFA== X-Received: by 10.224.165.130 with SMTP id i2mr30975826qay.2.1368904109575; Sat, 18 May 2013 12:08:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.164 with SMTP id t4ls2294671qet.28.gmail; Sat, 18 May 2013 12:08:29 -0700 (PDT) X-Received: by 10.52.165.76 with SMTP id yw12mr9266174vdb.93.1368904109453; Sat, 18 May 2013 12:08:29 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id sa4si8412949vdc.49.2013.05.18.12.08.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id gf11so1932967vcb.15 for ; Sat, 18 May 2013 12:08:29 -0700 (PDT) X-Received: by 10.58.90.5 with SMTP id bs5mr31305251veb.60.1368904109266; Sat, 18 May 2013 12:08: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 c10csp23854vcs; Sat, 18 May 2013 12:08:28 -0700 (PDT) X-Received: by 10.68.130.167 with SMTP id of7mr55065976pbb.169.1368904108379; Sat, 18 May 2013 12:08:28 -0700 (PDT) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx.google.com with ESMTPS id yh2si11946265pab.293.2013.05.18.12.08.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.54 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.220.54; Received: by mail-pa0-f54.google.com with SMTP id kx1so4546230pab.13 for ; Sat, 18 May 2013 12:08:28 -0700 (PDT) X-Received: by 10.68.226.106 with SMTP id rr10mr53335019pbc.127.1368904108012; Sat, 18 May 2013 12:08:28 -0700 (PDT) Received: from localhost.localdomain ([223.239.140.180]) by mx.google.com with ESMTPSA id ri8sm16685627pbc.3.2013.05.18.12.08.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:27 -0700 (PDT) From: Sanjay Singh Rawat To: linaro-dev@lists.linaro.org Cc: patches@linaro.org, Sanjay Singh Rawat Subject: [RFC PATCH 6/6] ARM: EXYNOS: use the core cpu hotplug functions Date: Sun, 19 May 2013 00:38:23 +0530 Message-Id: <1368904103-22122-7-git-send-email-sanjay.rawat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1368904103-22122-1-git-send-email-sanjay.rawat@linaro.org> References: <1368904103-22122-1-git-send-email-sanjay.rawat@linaro.org> X-Gm-Message-State: ALoCoQkMGW3qbVUBHl+nEYujW0HCOQMVoJl8yCywf0K518tQUVRfTULSVbyjNzKerkdn+H3ucYEQ X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 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-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);