From patchwork Mon May 20 06:33:24 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: 2592771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 36AE13FE81 for ; Mon, 20 May 2013 13:11:11 +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 1UePrq-0005dy-4n; Mon, 20 May 2013 13:11:10 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UeJfj-0005Ax-3x; Mon, 20 May 2013 06:34:15 +0000 Received: from mail-pd0-f175.google.com ([209.85.192.175]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UeJfG-000564-EH for linux-arm-kernel@lists.infradead.org; Mon, 20 May 2013 06:33:50 +0000 Received: by mail-pd0-f175.google.com with SMTP id y14so5103390pdi.20 for ; Sun, 19 May 2013 23:33:23 -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=UOhHlmECI2t78/KZXzO8uO5KwJIy2rRV7oDwQvD4EJ0=; b=dbMr9qdyT3nAOptWWBkwmGufgUUlunXq090pwM8Pr3gqar4nFaMW78QJxh4Q597oMT OgiyWj1eyglrs5MaZu1a9h4wz7+F0VY2gqN84vMprk9bIjIP7n0PvT9+3TApXvICLPy7 UqwHyUQkUdhA9uuXovvc0jltES7hkVPnOVgxTYX+D6rb8fLVTlj0N367VhgrIZCN/q6w FMGK/WBUgqWUyCNFUPyUFtQNe4VorXrswpBN9eXgM0/u3fCYTDywteKXQwW7bKCM5x65 +qLPGvOqA0cdKhxVlEoFG6CypmExvh09kyKKn9RB+QyDgrhPydqweUyZMS27lUJ7uQIg m+Og== X-Received: by 10.66.0.73 with SMTP id 9mr51300878pac.171.1369031603911; Sun, 19 May 2013 23:33:23 -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.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:23 -0700 (PDT) From: Sanjay Singh Rawat To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 2/6] ARM: imx: use the core cpu hotplug functions Date: Mon, 20 May 2013 12:03:24 +0530 Message-Id: <1369031608-27347-3-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: ALoCoQl5OPbXnJ86C/QpBgFYT7q+0vfXrnqI7KHmBIT3EGCY4/JWUFTnAMCYuu1Uhch9o2Zcir31 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130520_023346_780214_8EE865C2 X-CRM114-Status: GOOD ( 10.90 ) 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.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.175 listed in list.dnswl.org] 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-imx/hotplug.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/arch/arm/mach-imx/hotplug.c b/arch/arm/mach-imx/hotplug.c index 3daf1ed..280c6f3 100644 --- a/arch/arm/mach-imx/hotplug.c +++ b/arch/arm/mach-imx/hotplug.c @@ -14,30 +14,10 @@ #include #include #include +#include #include "common.h" -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"); -} - /* * platform-specific code to shutdown a CPU *