From patchwork Sat May 18 19:08:20 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: 17036 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0195024AAB for ; Sat, 18 May 2013 19:09:07 +0000 (UTC) Received: by mail-we0-f197.google.com with SMTP id t56sf759081wes.4 for ; Sat, 18 May 2013 12:08:23 -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=T6B/HCRqeE9KOPSuthdTHLA7wcTqMnvmqu8C2kfsk/82jHNZRniWFl3AK2HZLs3S7H MOjtRjkq3oV5gSwschM3TPMSLo9pFNn7Jw73Bi8LGn3G1hktfcz34Y0cTyc/9wAudEGi Z/2AuIhdMnE7oo1j8Ow6xTdJsHz6kH+u21slGVXyNjDGyLiKioKpLTHw0g6PKHR750DO 9P3ws3eos3SPEbQv12W04OxwNW2beqxifDJ3GbmpGRXTcYwcqPUGgNTDj9ZhBf5A5GGb 4N6rlnAauNb7M+sLRRnXvsEtJqjpyrT6IJIQcT942OeOaJJJm66Bi5keZhaibrvTVuPf DYNQ== X-Received: by 10.180.14.40 with SMTP id m8mr527618wic.7.1368904102694; Sat, 18 May 2013 12:08:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.36.166 with SMTP id r6ls438936wij.0.canary; Sat, 18 May 2013 12:08:22 -0700 (PDT) X-Received: by 10.180.109.48 with SMTP id hp16mr3391017wib.24.1368904102608; Sat, 18 May 2013 12:08:22 -0700 (PDT) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [2607:f8b0:400c:c01::22a]) by mx.google.com with ESMTPS id ui6si1679489wjc.22.2013.05.18.12.08.21 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: 2607:f8b0:400c:c01::22a 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::22a; Received: by mail-ve0-f170.google.com with SMTP id 15so3006493vea.15 for ; Sat, 18 May 2013 12:08:21 -0700 (PDT) X-Received: by 10.52.176.65 with SMTP id cg1mr6755582vdc.1.1368904100952; Sat, 18 May 2013 12:08:20 -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 c10csp23851vcs; Sat, 18 May 2013 12:08:20 -0700 (PDT) X-Received: by 10.68.216.37 with SMTP id on5mr55061973pbc.35.1368904100047; Sat, 18 May 2013 12:08:20 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id tw9si11938521pac.332.2013.05.18.12.08.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id 6so4274176pdd.31 for ; Sat, 18 May 2013 12:08:19 -0700 (PDT) X-Received: by 10.68.250.229 with SMTP id zf5mr53186729pbc.148.1368904099674; Sat, 18 May 2013 12:08:19 -0700 (PDT) Received: from localhost.localdomain ([223.239.140.180]) by mx.google.com with ESMTPSA id ri8sm16685627pbc.3.2013.05.18.12.08.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:19 -0700 (PDT) From: Sanjay Singh Rawat To: linaro-dev@lists.linaro.org Cc: patches@linaro.org, Sanjay Singh Rawat Subject: [RFC PATCH 3/6] ARM: RealView: use the core cpu hotplug functions Date: Sun, 19 May 2013 00:38:20 +0530 Message-Id: <1368904103-22122-4-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: ALoCoQmOFqCfnclKcR3D/lZMLhMUE3rVKPwaFzLI8m0WVU5WRb5lPWuURISe8t/+NKhZNtbu7p4/ X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22a 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) {