From patchwork Sat May 18 19:08:22 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: 17037 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3A35B24AAB for ; Sat, 18 May 2013 19:09:11 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id f13sf3272953vbg.5 for ; Sat, 18 May 2013 12:08:26 -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=TLiaXWmfFS+fmibvX3jI7Y7PF5uAhejz0kQlud7DNhtXg387egJ8iZ4wa7TXnvkvtr bif268N4pGZzDvl4jLFuDlOWARBGr1UU+xOOCGhr/Li1aZ65uwuYtS8+GjJw1q08bhGu OhlwXcuwr7Kj2sAOwzbnRFeDI+Wjf3tSz1Sw7jzGWeGxi4Bu128zx/YDq0J4HyWu039N mpJV3KLtI8vh9o2e8d/kD0tFD9E6s+S5tZ3QQFX/mh240JCCW43JtW4qMKonn9pmVsvM ooAEm/OjuOWqRgV/Vvd+MSFyqdcbVuz/mAMX9en8xKnAycUMBitgijTSOO2sTVYs4+Og bHcg== X-Received: by 10.224.215.194 with SMTP id hf2mr30998839qab.0.1368904106843; Sat, 18 May 2013 12:08:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.51.69 with SMTP id i5ls2238013qeo.89.gmail; Sat, 18 May 2013 12:08:26 -0700 (PDT) X-Received: by 10.52.248.242 with SMTP id yp18mr27031983vdc.40.1368904106711; Sat, 18 May 2013 12:08:26 -0700 (PDT) Received: from mail-vb0-x232.google.com (mail-vb0-x232.google.com [2607:f8b0:400c:c02::232]) by mx.google.com with ESMTPS id ef7si4767295vdc.7.2013.05.18.12.08.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:26 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::232 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::232; Received: by mail-vb0-f50.google.com with SMTP id w16so277128vbb.23 for ; Sat, 18 May 2013 12:08:26 -0700 (PDT) X-Received: by 10.58.187.164 with SMTP id ft4mr17852669vec.5.1368904106530; Sat, 18 May 2013 12:08:26 -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 c10csp23853vcs; Sat, 18 May 2013 12:08:26 -0700 (PDT) X-Received: by 10.66.240.70 with SMTP id vy6mr55114050pac.70.1368904105585; Sat, 18 May 2013 12:08:25 -0700 (PDT) Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [2607:f8b0:400e:c01::233]) by mx.google.com with ESMTPS id qo1si11648202pbc.335.2013.05.18.12.08.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:25 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c01::233 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2607:f8b0:400e:c01::233; Received: by mail-pb0-f51.google.com with SMTP id jt11so3168779pbb.38 for ; Sat, 18 May 2013 12:08:25 -0700 (PDT) X-Received: by 10.69.16.5 with SMTP id fs5mr29217870pbd.52.1368904105204; Sat, 18 May 2013 12:08:25 -0700 (PDT) Received: from localhost.localdomain ([223.239.140.180]) by mx.google.com with ESMTPSA id ri8sm16685627pbc.3.2013.05.18.12.08.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 12:08:24 -0700 (PDT) From: Sanjay Singh Rawat To: linaro-dev@lists.linaro.org Cc: patches@linaro.org, Sanjay Singh Rawat Subject: [RFC PATCH 5/6] ARM: vexpress: use the core cpu hotplug functions Date: Sun, 19 May 2013 00:38:22 +0530 Message-Id: <1368904103-22122-6-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: ALoCoQlnEHlE4/WY71btrtCEj/Zudcic/JSAERh87Ggw/0QVwPy9Ngez5DFaZPxzaZVR5OEqHldN X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::232 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) {