aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r--arch/powerpc/kernel/setup_64.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index d4a3c5dd1a21..275d86ddd612 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -103,8 +103,6 @@ extern void htab_initialize(void);
103extern void early_init_devtree(void *flat_dt); 103extern void early_init_devtree(void *flat_dt);
104extern void unflatten_device_tree(void); 104extern void unflatten_device_tree(void);
105 105
106extern void smp_release_cpus(void);
107
108int have_of = 1; 106int have_of = 1;
109int boot_cpuid = 0; 107int boot_cpuid = 0;
110int boot_cpuid_phys = 0; 108int boot_cpuid_phys = 0;
@@ -400,6 +398,27 @@ void __init early_setup(unsigned long dt_ptr)
400} 398}
401 399
402 400
401#if defined(CONFIG_SMP) || defined(CONFIG_KEXEC)
402void smp_release_cpus(void)
403{
404 extern unsigned long __secondary_hold_spinloop;
405
406 DBG(" -> smp_release_cpus()\n");
407
408 /* All secondary cpus are spinning on a common spinloop, release them
409 * all now so they can start to spin on their individual paca
410 * spinloops. For non SMP kernels, the secondary cpus never get out
411 * of the common spinloop.
412 * This is useless but harmless on iSeries, secondaries are already
413 * waiting on their paca spinloops. */
414
415 __secondary_hold_spinloop = 1;
416 mb();
417
418 DBG(" <- smp_release_cpus()\n");
419}
420#endif /* CONFIG_SMP || CONFIG_KEXEC */
421
403/* 422/*
404 * Initialize some remaining members of the ppc64_caches and systemcfg structures 423 * Initialize some remaining members of the ppc64_caches and systemcfg structures
405 * (at least until we get rid of them completely). This is mostly some 424 * (at least until we get rid of them completely). This is mostly some