From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id ACB94B70B3 for ; Fri, 24 Jul 2009 00:51:37 +1000 (EST) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F2848DDD01 for ; Fri, 24 Jul 2009 00:51:36 +1000 (EST) Message-Id: <9D0737C4-EA82-41B8-B109-ED4FDB901C00@kernel.crashing.org> From: Kumar Gala To: Benjamin Herrenschmidt In-Reply-To: <20090723055957.19D28DDD1B@ozlabs.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: [PATCH 11/20] powerpc: Move definitions of secondary CPU spinloop to header file Date: Thu, 23 Jul 2009 09:51:28 -0500 References: <20090723055957.19D28DDD1B@ozlabs.org> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Jul 23, 2009, at 12:59 AM, Benjamin Herrenschmidt wrote: > Those definitions are currently declared extern in the .c file where > they are used, move them to a header file instead. > > Signed-off-by: Benjamin Herrenschmidt > -- > > arch/powerpc/include/asm/smp.h | 5 +++++ > arch/powerpc/kernel/setup_64.c | 3 --- > 2 files changed, 5 insertions(+), 3 deletions(-) Can we not get rid of the externs in: arch/powerpc/platforms/cell/smp.c:extern void generic_secondary_smp_init(unsigned long); arch/powerpc/platforms/pseries/smp.c:extern void generic_secondary_smp_init(unsigned long); arch/powerpc/kernel/prom_init.c:extern unsigned long __secondary_hold_spinloop; - k > > > --- linux-work.orig/arch/powerpc/include/asm/smp.h 2009-07-22 > 16:38:32.000000000 +1000 > +++ linux-work/arch/powerpc/include/asm/smp.h 2009-07-22 > 16:46:59.000000000 +1000 > @@ -148,6 +148,11 @@ extern struct smp_ops_t *smp_ops; > extern void arch_send_call_function_single_ipi(int cpu); > extern void arch_send_call_function_ipi(cpumask_t mask); > > +#ifdef CONFIG_PPC64 > +extern void generic_secondary_smp_init(void); > +extern unsigned long __secondary_hold_spinloop; > +#endif /* CONFIG_PPC64 */ > + > #endif /* __ASSEMBLY__ */ > > #endif /* __KERNEL__ */ > Index: linux-work/arch/powerpc/kernel/setup_64.c > =================================================================== > --- linux-work.orig/arch/powerpc/kernel/setup_64.c 2009-07-22 > 16:38:12.000000000 +1000 > +++ linux-work/arch/powerpc/kernel/setup_64.c 2009-07-22 > 16:46:59.000000000 +1000 > @@ -230,9 +230,6 @@ void early_setup_secondary(void) > #endif /* CONFIG_SMP */ > > #if defined(CONFIG_SMP) || defined(CONFIG_KEXEC) > -extern unsigned long __secondary_hold_spinloop; > -extern void generic_secondary_smp_init(void); > - > void smp_release_cpus(void) > { > unsigned long *ptr; > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev