mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 14:43:17 +00:00
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>
This commit is contained in:
parent
747bea91b7
commit
cf54dc7cd4
7 changed files with 9 additions and 13 deletions
|
@ -148,6 +148,15 @@ extern struct smp_ops_t *smp_ops;
|
||||||
extern void arch_send_call_function_single_ipi(int cpu);
|
extern void arch_send_call_function_single_ipi(int cpu);
|
||||||
extern void arch_send_call_function_ipi(cpumask_t mask);
|
extern void arch_send_call_function_ipi(cpumask_t mask);
|
||||||
|
|
||||||
|
/* Definitions relative to the secondary CPU spin loop
|
||||||
|
* and entry point. Not all of them exist on both 32 and
|
||||||
|
* 64-bit but defining them all here doesn't harm
|
||||||
|
*/
|
||||||
|
extern void generic_secondary_smp_init(void);
|
||||||
|
extern unsigned long __secondary_hold_spinloop;
|
||||||
|
extern unsigned long __secondary_hold_acknowledge;
|
||||||
|
extern char __secondary_hold;
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
|
|
|
@ -1259,10 +1259,6 @@ static void __init prom_initialize_tce_table(void)
|
||||||
*
|
*
|
||||||
* -- Cort
|
* -- Cort
|
||||||
*/
|
*/
|
||||||
extern char __secondary_hold;
|
|
||||||
extern unsigned long __secondary_hold_spinloop;
|
|
||||||
extern unsigned long __secondary_hold_acknowledge;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We want to reference the copy of __secondary_hold_* in the
|
* We want to reference the copy of __secondary_hold_* in the
|
||||||
* 0 - 0x100 address range
|
* 0 - 0x100 address range
|
||||||
|
|
|
@ -230,9 +230,6 @@ void early_setup_secondary(void)
|
||||||
#endif /* CONFIG_SMP */
|
#endif /* CONFIG_SMP */
|
||||||
|
|
||||||
#if defined(CONFIG_SMP) || defined(CONFIG_KEXEC)
|
#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)
|
void smp_release_cpus(void)
|
||||||
{
|
{
|
||||||
unsigned long *ptr;
|
unsigned long *ptr;
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
|
|
||||||
#include <sysdev/fsl_soc.h>
|
#include <sysdev/fsl_soc.h>
|
||||||
|
|
||||||
extern volatile unsigned long __secondary_hold_acknowledge;
|
|
||||||
extern void __early_start(void);
|
extern void __early_start(void);
|
||||||
|
|
||||||
#define BOOT_ENTRY_ADDR_UPPER 0
|
#define BOOT_ENTRY_ADDR_UPPER 0
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
#include "mpc86xx.h"
|
#include "mpc86xx.h"
|
||||||
|
|
||||||
extern void __secondary_start_mpc86xx(void);
|
extern void __secondary_start_mpc86xx(void);
|
||||||
extern unsigned long __secondary_hold_acknowledge;
|
|
||||||
|
|
||||||
#define MCM_PORT_CONFIG_OFFSET 0x10
|
#define MCM_PORT_CONFIG_OFFSET 0x10
|
||||||
|
|
||||||
|
|
|
@ -58,8 +58,6 @@
|
||||||
*/
|
*/
|
||||||
static cpumask_t of_spin_map;
|
static cpumask_t of_spin_map;
|
||||||
|
|
||||||
extern void generic_secondary_smp_init(unsigned long);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* smp_startup_cpu() - start the given cpu
|
* smp_startup_cpu() - start the given cpu
|
||||||
*
|
*
|
||||||
|
|
|
@ -56,8 +56,6 @@
|
||||||
*/
|
*/
|
||||||
static cpumask_t of_spin_map;
|
static cpumask_t of_spin_map;
|
||||||
|
|
||||||
extern void generic_secondary_smp_init(unsigned long);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* smp_startup_cpu() - start the given cpu
|
* smp_startup_cpu() - start the given cpu
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue