From patchwork Sat May 18 19:08:21 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: 17035 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 69E4225DF4 for ; Sat, 18 May 2013 19:09:08 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id n10sf2065933qcx.7 for ; Sat, 18 May 2013 12:08:24 -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=H6QayTfv2LBr9A+Py9bGTSz5kFDfFftyvtFdVIROJ68VYqGf3VFk45aRPegY882Vsi da7GXzUIzJjJL2UYNzxPs+FgELYoz6aUA3ubkIIE+yLbTkD9l8j/sbAW9owgz413WiYB Bx7lg2hvV/bVL7bwqyWWuzaHiGolE2dheP0d+S1XFokPXGa6dyZ9R9jp1amfkS1o76ag 0aMdDbonpeh80Yn1R20q0Q9V7GzzNkHNZHugM2Wi/T6OXJJS7gxwvTUp76ALckSYstqw ZKIiPWgITpCo1sbz41XpTE/2aqBUPHl/Cymc6b2HHA0uJiG0cdnu8w8IC2UXcv3MiXXg NLqw== X-Received: by 10.224.130.195 with SMTP id u3mr30986187qas.1.1368904104030; Sat, 18 May 2013 12:08:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.13.106 with SMTP id g10ls2059989qec.39.gmail; Sat, 18 May 2013 12:08:23 -0700 (PDT) X-Received: by 10.52.21.241 with SMTP id y17mr27227118vde.113.1368904103907; Sat, 18 May 2013 12:08:23 -0700 (PDT) Received: from mail-vb0-x231.google.com (mail-vb0-x231.google.com [2607:f8b0:400c:c02::231]) by mx.google.com with ESMTPS id o9si8396028vce.63.2013.05.18.12.08.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:23 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::231 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::231; Received: by mail-vb0-f49.google.com with SMTP id q12so3009633vbe.8 for ; Sat, 18 May 2013 12:08:23 -0700 (PDT) X-Received: by 10.52.69.200 with SMTP id g8mr9604689vdu.4.1368904103687; Sat, 18 May 2013 12:08:23 -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 c10csp23852vcs; Sat, 18 May 2013 12:08:23 -0700 (PDT) X-Received: by 10.68.224.65 with SMTP id ra1mr53223321pbc.103.1368904102851; Sat, 18 May 2013 12:08:22 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id pf4si11660312pbc.254.2013.05.18.12.08.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id t12so2550716pdi.30 for ; Sat, 18 May 2013 12:08:22 -0700 (PDT) X-Received: by 10.68.172.36 with SMTP id az4mr53238191pbc.211.1368904102487; Sat, 18 May 2013 12:08:22 -0700 (PDT) Received: from localhost.localdomain ([223.239.140.180]) by mx.google.com with ESMTPSA id ri8sm16685627pbc.3.2013.05.18.12.08.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:21 -0700 (PDT) From: Sanjay Singh Rawat To: linaro-dev@lists.linaro.org Cc: patches@linaro.org, Sanjay Singh Rawat Subject: [RFC PATCH 4/6] ARM: spear: use the core cpu hotplug functions Date: Sun, 19 May 2013 00:38:21 +0530 Message-Id: <1368904103-22122-5-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: ALoCoQlbrYlYnL1X0CvLE6GAGFLHDBgRisdkB1veglKtmidr9oRVQv2KzMl/Ij2NbxL+VeJ3W047 X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::231 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) {