Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+9 -13
+9
arch/powerpc/include/asm/smp.h
··· 148 148 extern void arch_send_call_function_single_ipi(int cpu); 149 149 extern void arch_send_call_function_ipi(cpumask_t mask); 150 150 151 + /* Definitions relative to the secondary CPU spin loop 152 + * and entry point. Not all of them exist on both 32 and 153 + * 64-bit but defining them all here doesn't harm 154 + */ 155 + extern void generic_secondary_smp_init(void); 156 + extern unsigned long __secondary_hold_spinloop; 157 + extern unsigned long __secondary_hold_acknowledge; 158 + extern char __secondary_hold; 159 + 151 160 #endif /* __ASSEMBLY__ */ 152 161 153 162 #endif /* __KERNEL__ */
-4
arch/powerpc/kernel/prom_init.c
··· 1259 1259 * 1260 1260 * -- Cort 1261 1261 */ 1262 - extern char __secondary_hold; 1263 - extern unsigned long __secondary_hold_spinloop; 1264 - extern unsigned long __secondary_hold_acknowledge; 1265 - 1266 1262 /* 1267 1263 * We want to reference the copy of __secondary_hold_* in the 1268 1264 * 0 - 0x100 address range
-3
arch/powerpc/kernel/setup_64.c
··· 230 230 #endif /* CONFIG_SMP */ 231 231 232 232 #if defined(CONFIG_SMP) || defined(CONFIG_KEXEC) 233 - extern unsigned long __secondary_hold_spinloop; 234 - extern void generic_secondary_smp_init(void); 235 - 236 233 void smp_release_cpus(void) 237 234 { 238 235 unsigned long *ptr;
-1
arch/powerpc/platforms/85xx/smp.c
··· 25 25 26 26 #include <sysdev/fsl_soc.h> 27 27 28 - extern volatile unsigned long __secondary_hold_acknowledge; 29 28 extern void __early_start(void); 30 29 31 30 #define BOOT_ENTRY_ADDR_UPPER 0
-1
arch/powerpc/platforms/86xx/mpc86xx_smp.c
··· 27 27 #include "mpc86xx.h" 28 28 29 29 extern void __secondary_start_mpc86xx(void); 30 - extern unsigned long __secondary_hold_acknowledge; 31 30 32 31 #define MCM_PORT_CONFIG_OFFSET 0x10 33 32
-2
arch/powerpc/platforms/cell/smp.c
··· 58 58 */ 59 59 static cpumask_t of_spin_map; 60 60 61 - extern void generic_secondary_smp_init(unsigned long); 62 - 63 61 /** 64 62 * smp_startup_cpu() - start the given cpu 65 63 *
-2
arch/powerpc/platforms/pseries/smp.c
··· 56 56 */ 57 57 static cpumask_t of_spin_map; 58 58 59 - extern void generic_secondary_smp_init(unsigned long); 60 - 61 59 /** 62 60 * smp_startup_cpu() - start the given cpu 63 61 *