From patchwork Sat May 18 19:08:19 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: 17034 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C2A9224AAB for ; Sat, 18 May 2013 19:09:02 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf6070071ghr.9 for ; Sat, 18 May 2013 12:08:18 -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=TFkFFUF2eghw7JTnPrmdsTQqOiJLmoYp7Lvhouql2ZsY5XFkoslgL+BnRuHBjy3U9H GvqQyw4TusWIX1cd9sTes3AePQZsqjmZEVWFaGqF8NVM5cAe5vSU4Gsbbvww6ASISags oN1xVOLtjzSkGi3dMM1TidIy9VrJPAeYEaAwglwW7GPqf1q4Fz4GNwTOukVFlsiOT11p xMsgJmpNxdmf444qLoUpDy2AP/XyUwrpP7GePS8rtqWzD7chu/nTDfZEYe+u6azphLNa v6UtfD4FUL4yOghlLCKadpvD9uWabW0BRJrh5rJ0R53U5Shs9PLZI/0zH6uPTmr4ZS3o 6Vdw== X-Received: by 10.224.42.141 with SMTP id s13mr31001061qae.3.1368904098483; Sat, 18 May 2013 12:08:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.27.161 with SMTP id u1ls2285361qeg.57.gmail; Sat, 18 May 2013 12:08:18 -0700 (PDT) X-Received: by 10.52.37.196 with SMTP id a4mr27259410vdk.82.1368904098170; Sat, 18 May 2013 12:08:18 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id sa4si8381281vdc.140.2013.05.18.12.08.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ht10so4448056vcb.4 for ; Sat, 18 May 2013 12:08:18 -0700 (PDT) X-Received: by 10.58.225.228 with SMTP id rn4mr241772vec.35.1368904097980; Sat, 18 May 2013 12:08:17 -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 c10csp23849vcs; Sat, 18 May 2013 12:08:17 -0700 (PDT) X-Received: by 10.66.216.170 with SMTP id or10mr42266838pac.31.1368904097182; Sat, 18 May 2013 12:08:17 -0700 (PDT) Received: from mail-da0-x22e.google.com (mail-da0-x22e.google.com [2607:f8b0:400e:c00::22e]) by mx.google.com with ESMTPS id pt5si11959554pac.214.2013.05.18.12.08.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:17 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::22e is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400e:c00::22e; Received: by mail-da0-f46.google.com with SMTP id e20so728388dak.5 for ; Sat, 18 May 2013 12:08:16 -0700 (PDT) X-Received: by 10.68.251.133 with SMTP id zk5mr54186627pbc.75.1368904096791; Sat, 18 May 2013 12:08:16 -0700 (PDT) Received: from localhost.localdomain ([223.239.140.180]) by mx.google.com with ESMTPSA id ri8sm16685627pbc.3.2013.05.18.12.08.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:16 -0700 (PDT) From: Sanjay Singh Rawat To: linaro-dev@lists.linaro.org Cc: patches@linaro.org, Sanjay Singh Rawat Subject: [RFC PATCH 2/6] ARM: imx: use the core cpu hotplug functions Date: Sun, 19 May 2013 00:38:19 +0530 Message-Id: <1368904103-22122-3-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: ALoCoQld0tYOWXRA2jfTF/n0SfUShXetmgv56WRw+RQ1egtW0GTLYBZirn1EFnz5DKn1DcrkwqrS X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 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 *