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: 17046 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 352B820F5A for ; Mon, 20 May 2013 06:34:13 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m14sf2700154yen.1 for ; Sun, 19 May 2013 23:33:25 -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=UOhHlmECI2t78/KZXzO8uO5KwJIy2rRV7oDwQvD4EJ0=; b=etmBR/vPYCaucCyc2iLj+dzYeSvWsSzELREefB8pvKzK0Do9A7CPEnRl1Mb1J/kKIq xkGqJIlKKs98rR+EtzqDggSgD3Wzd27bqkRE/c4kMWcxm8fIhFbY7pzDU6jWLXTVl0vi i9HbRHTApuD2Or2uNUZMiLg/WkwhQOyhbfYlsdu0+GFOsTWETnHDpNl+sqcM/KlIFE5z sJoXiOgXmdrWJySoxKCzRYDa+1Y2Fyhlr4uDB+YnfKjkR5ztcpF9rwmxv86f768jM9ck 5zp2UQvsuYo7rCEsV4hKiVVIKllMPnTLq08z+De3BhxLgFH5rDThnkJ6KYjR/J551H5H aV7Q== X-Received: by 10.224.42.141 with SMTP id s13mr34295974qae.3.1369031605526; Sun, 19 May 2013 23:33:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.132.131 with SMTP id ou3ls2210508qeb.20.gmail; Sun, 19 May 2013 23:33:25 -0700 (PDT) X-Received: by 10.52.115.42 with SMTP id jl10mr210061vdb.39.1369031605381; Sun, 19 May 2013 23:33:25 -0700 (PDT) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [2607:f8b0:400c:c01::22d]) by mx.google.com with ESMTPS id sy4si4673405vdc.56.2013.05.19.23.33.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:25 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22d 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::22d; Received: by mail-ve0-f173.google.com with SMTP id cy12so5379964veb.18 for ; Sun, 19 May 2013 23:33:25 -0700 (PDT) X-Received: by 10.52.34.114 with SMTP id y18mr5692992vdi.56.1369031605221; Sun, 19 May 2013 23:33:25 -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 c10csp69538vcs; Sun, 19 May 2013 23:33:24 -0700 (PDT) X-Received: by 10.68.108.196 with SMTP id hm4mr59414821pbb.88.1369031604283; Sun, 19 May 2013 23:33:24 -0700 (PDT) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx.google.com with ESMTPS id xl2si15647226pbc.181.2013.05.19.23.33.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 23:33:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.179 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.192.179; Received: by mail-pd0-f179.google.com with SMTP id q10so5064685pdj.24 for ; Sun, 19 May 2013 23:33:23 -0700 (PDT) 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 Cc: linux-kernel@vger.kernel.org, linaro-dev@lists.linaro.org, Sanjay Singh Rawat 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: ALoCoQmAYipVh/3eJiTmbNWmpzsEqp4eV9uB7L/T0C+redf00V0BZR7F3HCnTlTlsJI/Oyg/ZfEs X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22d 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-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 *