From patchwork Mon May 20 06:33:27 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: 17049 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 410C120F5A for ; Mon, 20 May 2013 06:34:25 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id ox1sf7911098veb.0 for ; Sun, 19 May 2013 23:33:37 -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=R8wROQRchWFqqObZkTiLBKBqZbmyanQN53cvqhHD5tg=; b=EAQNoiicQkapnDCj1JKxlKUdqwof7X0zcHaZwDIttjBRwuif4dwDkjcXR1EVJfKx7A 7loeefksXtokQEEugzNkX+2hXicuFXxKC/MyEB+UO3LTQYJXGfRQ9KuwuMNlLFRcI1L+ DU/oMXpRcp1g6KYGUBa95SxGOd9zTsbgXnr6SXjtlTKY9wIq0G6Q43CAC0JitMuIYZLF zzNv6/hurAP9Gu1BmJl0PgrUp/PRIcamE5dyU9bYbihbw0BzOpV6+7vT5QFa/1jOHCqz RibbsxEJJ4ptMDLoWD8iHZQpMU6gbjXRFznR1BVPw18DCnahqrhzjn3UbuE+y8D9ldWm FEgg== X-Received: by 10.224.174.145 with SMTP id t17mr7201279qaz.4.1369031617527; Sun, 19 May 2013 23:33:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.41.7 with SMTP id b7ls2566616qel.12.gmail; Sun, 19 May 2013 23:33:37 -0700 (PDT) X-Received: by 10.58.233.233 with SMTP id tz9mr33871318vec.13.1369031617399; Sun, 19 May 2013 23:33:37 -0700 (PDT) Received: from mail-vb0-x229.google.com (mail-vb0-x229.google.com [2607:f8b0:400c:c02::229]) by mx.google.com with ESMTPS id ad7si11116740vdc.81.2013.05.19.23.33.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:37 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::229 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::229; Received: by mail-vb0-f41.google.com with SMTP id w8so3653394vbf.0 for ; Sun, 19 May 2013 23:33:37 -0700 (PDT) X-Received: by 10.58.90.5 with SMTP id bs5mr33015372veb.60.1369031617232; Sun, 19 May 2013 23:33:37 -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 c10csp69544vcs; Sun, 19 May 2013 23:33:36 -0700 (PDT) X-Received: by 10.68.237.74 with SMTP id va10mr59320432pbc.76.1369031616334; Sun, 19 May 2013 23:33:36 -0700 (PDT) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by mx.google.com with ESMTPS id ql7si15625429pbc.326.2013.05.19.23.33.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.170 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.192.170; Received: by mail-pd0-f170.google.com with SMTP id x11so1201326pdj.1 for ; Sun, 19 May 2013 23:33:36 -0700 (PDT) X-Received: by 10.66.163.99 with SMTP id yh3mr59088889pab.22.1369031615963; Sun, 19 May 2013 23:33:35 -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.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:35 -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 5/6] ARM: vexpress: use the core cpu hotplug functions Date: Mon, 20 May 2013 12:03:27 +0530 Message-Id: <1369031608-27347-6-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: ALoCoQmQ/9lqpPtUB1IJInapxPwgZ1TV85hj44G/DSosf01zF0v/xfgmbKVKaW/NYbdIZ+PX6r8z X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::229 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-vexpress/hotplug.c | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/arch/arm/mach-vexpress/hotplug.c b/arch/arm/mach-vexpress/hotplug.c index f0ce6b8..cca1361 100644 --- a/arch/arm/mach-vexpress/hotplug.c +++ b/arch/arm/mach-vexpress/hotplug.c @@ -14,43 +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, %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_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"); -} +#include static inline void platform_do_lowpower(unsigned int cpu, int *spurious) {