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

Commit 4ef8e5a1 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM64: smp: Fix cpu_up() racing with sys_reboot"

parents 6e507d26 cb071736
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -790,7 +790,7 @@ void arch_irq_work_raise(void)
 */
static void ipi_cpu_stop(unsigned int cpu)
{
	set_cpu_online(cpu, false);
	set_cpu_active(cpu, false);

	local_daif_mask();
	sdei_mask_local_cpu();
@@ -925,10 +925,10 @@ void smp_send_stop(void)

	/* Wait up to one second for other CPUs to stop */
	timeout = USEC_PER_SEC;
	while (num_online_cpus() > 1 && timeout--)
	while (num_active_cpus() > 1 && timeout--)
		udelay(1);

	if (num_online_cpus() > 1)
	if (num_active_cpus() > 1)
		pr_warning("SMP: failed to stop secondary CPUs %*pbl\n",
			   cpumask_pr_args(cpu_online_mask));