From patchwork Fri Mar 28 21:12:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 27380 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0BF8620062 for ; Fri, 28 Mar 2014 21:14:47 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kq14sf13513298pab.6 for ; Fri, 28 Mar 2014 14:14:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Bqvb3QrAcFhT84YpOiMOeotEZZJMM21HHuBzvJo8r/k=; b=eiSAHPTF2bbHHAW/xhYTCsHsKXBUjCZ5LXT7tvJmymQHf86KwHDKSO1X26qUcHRZip pMd76UZ7tX/1nPX+Cv5n7B/+AWNg+w2BIfb5LtO+TECRjtOmeRwOcRV7TBC3aQH1w9J6 EX4EekYFYaw6qJn79nTk9kEkfsXrD4xmFvRybDCZaUlGOVNRVLvopvk1+4kSc9O5HbjI VenUW1QVFKpUddZqgPA7s0mFeqSym8zfmAt8lyNTarT6wnO+sDaJL2H7Dyce7520k7yz aaiDp6kczcyP6cAsxT56ua8q2DsH+J2SVdVAFyz/iSQqUWx635OtQ5yvvEBEyI20rCl5 jnYg== X-Gm-Message-State: ALoCoQmyQCTCuGis1H/kMBpMaXXIt3dmfuD23pdjYdLfG73oVgDtAmUMHjukq9mZHBUXM3Fcd16O X-Received: by 10.66.26.146 with SMTP id l18mr4024277pag.2.1396041287245; Fri, 28 Mar 2014 14:14:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.20 with SMTP id b20ls1637743qga.5.gmail; Fri, 28 Mar 2014 14:14:47 -0700 (PDT) X-Received: by 10.220.114.135 with SMTP id e7mr3318540vcq.23.1396041286966; Fri, 28 Mar 2014 14:14:46 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id sq9si1476421vdc.179.2014.03.28.14.14.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 14:14:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so3059199veb.7 for ; Fri, 28 Mar 2014 14:14:46 -0700 (PDT) X-Received: by 10.59.7.228 with SMTP id df4mr9047524ved.11.1396041286898; Fri, 28 Mar 2014 14:14:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp39723vcv; Fri, 28 Mar 2014 14:14:46 -0700 (PDT) X-Received: by 10.66.26.15 with SMTP id h15mr10800415pag.24.1396041286243; Fri, 28 Mar 2014 14:14:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ys6si4353866pab.459.2014.03.28.14.14.45; Fri, 28 Mar 2014 14:14:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753225AbaC1VM5 (ORCPT + 27 others); Fri, 28 Mar 2014 17:12:57 -0400 Received: from mail-ig0-f177.google.com ([209.85.213.177]:34195 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753122AbaC1VMs (ORCPT ); Fri, 28 Mar 2014 17:12:48 -0400 Received: by mail-ig0-f177.google.com with SMTP id ur14so1380132igb.4 for ; Fri, 28 Mar 2014 14:12:47 -0700 (PDT) X-Received: by 10.42.58.130 with SMTP id i2mr3381081ich.66.1396041167688; Fri, 28 Mar 2014 14:12:47 -0700 (PDT) Received: from localhost.localdomain (c-71-195-31-37.hsd1.mn.comcast.net. [71.195.31.37]) by mx.google.com with ESMTPSA id t1sm7139024igw.16.2014.03.28.14.12.46 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 14:12:46 -0700 (PDT) From: Alex Elder To: linux@arm.linux.org.uk, linus.walleij@linaro.org, viresh.linux@gmail.com, shiraz.hashim@gmail.com, catalin.marinas@arm.com Cc: spear-devel@list.st.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 4/7] ARM: vexpress: use central SMP spin-table routines Date: Fri, 28 Mar 2014 16:12:57 -0500 Message-Id: <1396041180-29897-5-git-send-email-elder@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396041180-29897-1-git-send-email-elder@linaro.org> References: <1396041180-29897-1-git-send-email-elder@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: elder@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This is the second patch involved replacing the use of smp operations defined under arch/arm/mach-versatile. Both realview and vexpress use the same smp_boot_secondary and smp_secondary_init functions, and those are equivalent to the common ones now available in arch/arm/kernel/smp.c. This converts mach-vexpress to use the common routines. Signed-off-by: Alex Elder --- arch/arm/mach-vexpress/platsmp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-vexpress/platsmp.c b/arch/arm/mach-vexpress/platsmp.c index 993c9ae..1ed4078 100644 --- a/arch/arm/mach-vexpress/platsmp.c +++ b/arch/arm/mach-vexpress/platsmp.c @@ -22,8 +22,6 @@ #include -#include - #include "core.h" #if defined(CONFIG_OF) @@ -193,14 +191,14 @@ static void __init vexpress_smp_prepare_cpus(unsigned int max_cpus) * until it receives a soft interrupt, and then the * secondary CPU branches to this address. */ - vexpress_flags_set(virt_to_phys(versatile_secondary_startup)); + vexpress_flags_set(virt_to_phys(secondary_holding_pen)); } struct smp_operations __initdata vexpress_smp_ops = { .smp_init_cpus = vexpress_smp_init_cpus, .smp_prepare_cpus = vexpress_smp_prepare_cpus, - .smp_secondary_init = versatile_secondary_init, - .smp_boot_secondary = versatile_boot_secondary, + .smp_secondary_init = smp_secondary_init, + .smp_boot_secondary = smp_boot_secondary, #ifdef CONFIG_HOTPLUG_CPU .cpu_die = vexpress_cpu_die, #endif