aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-07-23 19:15:28 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-08-19 20:12:44 -0400
commitcf54dc7cd4f9aab55cd3e1794b0b74c3c88cd1a0 (patch)
treed76b0914de720b5654af092af6e5245a49e62df6 /arch/powerpc/kernel
parent747bea91b764aefd59091ebff80f182282f1d23c (diff)
powerpc: Move definitions of secondary CPU spinloop to header file
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 <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/prom_init.c4
-rw-r--r--arch/powerpc/kernel/setup_64.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index a538824616fd..d942404779c1 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -1259,10 +1259,6 @@ static void __init prom_initialize_tce_table(void)
1259 * 1259 *
1260 * -- Cort 1260 * -- Cort
1261 */ 1261 */
1262extern char __secondary_hold;
1263extern unsigned long __secondary_hold_spinloop;
1264extern unsigned long __secondary_hold_acknowledge;
1265
1266/* 1262/*
1267 * We want to reference the copy of __secondary_hold_* in the 1263 * We want to reference the copy of __secondary_hold_* in the
1268 * 0 - 0x100 address range 1264 * 0 - 0x100 address range
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 325dc5b2e626..a6b6c4c9ae41 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -230,9 +230,6 @@ void early_setup_secondary(void)
230#endif /* CONFIG_SMP */ 230#endif /* CONFIG_SMP */
231 231
232#if defined(CONFIG_SMP) || defined(CONFIG_KEXEC) 232#if defined(CONFIG_SMP) || defined(CONFIG_KEXEC)
233extern unsigned long __secondary_hold_spinloop;
234extern void generic_secondary_smp_init(void);
235
236void smp_release_cpus(void) 233void smp_release_cpus(void)
237{ 234{
238 unsigned long *ptr; 235 unsigned long *ptr;