18 #include <asm/cacheflush.h>
21 #include <mach/spear.h>
22 #include <mach/generic.h>
28 static void __cpuinit spear13xx_secondary_init(
unsigned int cpu)
47 spin_lock(&boot_lock);
48 spin_unlock(&boot_lock);
59 spin_lock(&boot_lock);
86 spin_unlock(&boot_lock);
95 static void __init spear13xx_smp_init_cpus(
void)
99 if (ncores > nr_cpu_ids) {
100 pr_warn(
"SMP: %u cores greater than maximum (%u), clipping\n",
105 for (i = 0; i < ncores; i++)
111 static void __init spear13xx_smp_prepare_cpus(
unsigned int max_cpus)
125 .smp_init_cpus = spear13xx_smp_init_cpus,
126 .smp_prepare_cpus = spear13xx_smp_prepare_cpus,
127 .smp_secondary_init = spear13xx_secondary_init,
128 .smp_boot_secondary = spear13xx_boot_secondary,
129 #ifdef CONFIG_HOTPLUG_CPU