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: 2593271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id B7434DF2A2 for ; Mon, 20 May 2013 14:34:08 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UePIO-0006Kh-4H; Mon, 20 May 2013 12:34:32 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UeJg2-0005D4-6g; Mon, 20 May 2013 06:34:34 +0000 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UeJfR-00056Q-Nn for linux-arm-kernel@lists.infradead.org; Mon, 20 May 2013 06:33:58 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc17so1644687pbc.32 for ; Sun, 19 May 2013 23:33:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=R8wROQRchWFqqObZkTiLBKBqZbmyanQN53cvqhHD5tg=; b=M4dAGA6TR5qD58pyMIq4nokmxr6LHU4bLJEZcUMlAu7CeledoxUKIQsokNEPvxBX8U +rdq0000apW7LJXaMKsm+nguucEqX2dvMMUvdRDaRh2fq4hJo+QErvUK54t+cv6rwoYR 7TpgyL0V2LjFcP/90Skbeop5HxORpZHtXhdAspShz2bqRCms0NBHubxFU1+L+1MUNOY1 yWvfQjYC5xjDJzp7ovKYS/oNOLXTK8n7EZKw944nzqcrkDH5yoe3IZ/eG+ebhOjOnfz/ pkeYyovI8EblghN3f6FWC7eAbgGsk70C1fpm0jTZlYLMmJJLKcYUcI+2DWkGBkkIxeYQ lmKw== 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 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: ALoCoQlWtSOBkimnDcZYIYAdHwl1FjUnrGksq5xyVQfCBWnf6Oj6cxLnQT1TNQ0iDSUTkma0tcJe X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130520_023357_910477_E9C2F7E2 X-CRM114-Status: GOOD ( 10.67 ) X-Spam-Score: -1.1 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [203.247.149.152 listed in dnsbl.sorbs.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-dev@lists.linaro.org, linux-kernel@vger.kernel.org, Sanjay Singh Rawat X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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) {