From: Julien Grall Subject: [PATCH 6/6] xen/arm: SMP: Move out of the init section the code to bring up a CPU Date: Fri, 16 Jan 2015 16:20:48 +0000 Message-ID: <1421425248-8727-7-git-send-email-julien.grall@linaro.org> References: <1421425248-8727-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YC9eM-0006A7-SL for xen-devel@lists.xenproject.org; Fri, 16 Jan 2015 16:21:31 +0000 Received: by mail-wg0-f41.google.com with SMTP id l18so21450457wgh.0 for ; Fri, 16 Jan 2015 08:21:29 -0800 (PST) In-Reply-To: <1421425248-8727-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org When CPU hotplug will be supported, it will require to bring up a CPU. Signed-off-by: Julien Grall --- I'm not sure if we should flag these functions with __cpuinit. The define doesn't do anything. --- xen/arch/arm/arm32/smpboot.c | 4 ++-- xen/arch/arm/platform.c | 2 +- xen/arch/arm/smpboot.c | 2 +- xen/include/asm-arm/smp.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/arm32/smpboot.c b/xen/arch/arm/arm32/smpboot.c index 2a77f29..226d6fd 100644 --- a/xen/arch/arm/arm32/smpboot.c +++ b/xen/arch/arm/arm32/smpboot.c @@ -8,7 +8,7 @@ int __init arch_smp_init(void) return platform_smp_init(); } -int __init arch_cpu_init(int cpu, struct dt_device_node *dn) +int arch_cpu_init(int cpu, struct dt_device_node *dn) { /* Not needed on ARM32, as there is no relevant information in * the CPU device tree node for ARMv7 CPUs. @@ -16,7 +16,7 @@ int __init arch_cpu_init(int cpu, struct dt_device_node *dn) return 0; } -int __init arch_cpu_up(int cpu) +int arch_cpu_up(int cpu) { return platform_cpu_up(cpu); } diff --git a/xen/arch/arm/platform.c b/xen/arch/arm/platform.c index cb4cda8..0368679 100644 --- a/xen/arch/arm/platform.c +++ b/xen/arch/arm/platform.c @@ -108,7 +108,7 @@ int __init platform_specific_mapping(struct domain *d) } #ifdef CONFIG_ARM_32 -int __init platform_cpu_up(int cpu) +int platform_cpu_up(int cpu) { if ( psci_ver ) return call_psci_cpu_on(cpu); diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index a96cda2..a228623 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -343,7 +343,7 @@ void stop_cpu(void) wfi(); } -int __init cpu_up_send_sgi(int cpu) +int cpu_up_send_sgi(int cpu) { /* We don't know the GIC ID of the CPU until it has woken up, so just * signal everyone and rely on our own smp_up_cpu gate to ensure only diff --git a/xen/include/asm-arm/smp.h b/xen/include/asm-arm/smp.h index 91b1e52..181aead 100644 --- a/xen/include/asm-arm/smp.h +++ b/xen/include/asm-arm/smp.h @@ -17,7 +17,7 @@ DECLARE_PER_CPU(cpumask_var_t, cpu_core_mask); extern void noreturn stop_cpu(void); -extern int arch_smp_init(void); +extern int __init arch_smp_init(void); extern int arch_cpu_init(int cpu, struct dt_device_node *dn); extern int arch_cpu_up(int cpu); -- 2.1.4