Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7acb59eb authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Make sure all SH-X3 cores are populated in the present CPU map.



This iterates over the maximum number of CPUs we plan to support and
makes sure they're all set in the present CPU map.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent f0ccf277
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -74,6 +74,9 @@ static void shx3_prepare_cpus(unsigned int max_cpus)
	for (i = 0; i < SMP_MSG_NR; i++)
		request_irq(104 + i, ipi_interrupt_handler,
			    IRQF_DISABLED | IRQF_PERCPU, "IPI", (void *)(long)i);

	for (i = 0; i < max_cpus; i++)
		set_cpu_present(i, true);
}

static void shx3_start_cpu(unsigned int cpu, unsigned long entry_point)