15 #include <linux/module.h>
17 #include <linux/kernel.h>
19 #include <linux/sched.h>
28 #include <asm/mmu_context.h>
29 #include <asm/tlbflush.h>
30 #include <asm/sections.h>
70 pr_err(
"Couldn't set init affinity to boot cpu (%ld)\n", rc);
105 panic(
"failed fork for CPU %d", cpu);
114 BUG_ON(cpu_count > (max_cpus ? max_cpus : 1));
126 static __init int reset_init_affinity(
void)
130 pr_warning(
"couldn't reset init affinity (%ld)\n",
174 if (cpumask_test_and_set_cpu(cpuid, &cpu_started)) {
175 pr_warning(
"CPU#%d already started!\n", cpuid);
220 if (timeout >= 50000) {
221 pr_info(
"skipping unresponsive cpu%d\n", cpu);
238 static void panic_start_cpu(
void)
240 panic(
"Received a MSG_START_CPU IPI after boot finished.");
262 for (cpu = cpumask_first(&init_affinity);
263 (next = cpumask_next(cpu, &init_affinity)) <
nr_cpu_ids;
268 pr_err(
"Couldn't set init affinity to cpu %d (%d)\n", cpu, rc);