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

Commit 0b2b06ef authored by Steven Miao's avatar Steven Miao Committed by Mike Frysinger
Browse files

Blackfin: SMP: fix scheduling deadlock



Make sure our smp_send_reschedule() implementation matches the
scheduler_ipi() callback so that it can kick the idle cpu.

Signed-off-by: default avatarSteven Miao <realmz6@gmail.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 74b65417
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -295,10 +295,15 @@ EXPORT_SYMBOL_GPL(smp_call_function_single);


void smp_send_reschedule(int cpu)
void smp_send_reschedule(int cpu)
{
{
	cpumask_t callmap;
	/* simply trigger an ipi */
	/* simply trigger an ipi */
	if (cpu_is_offline(cpu))
	if (cpu_is_offline(cpu))
		return;
		return;
	platform_send_ipi_cpu(cpu, IRQ_SUPPLE_0);

	cpumask_clear(&callmap);
	cpumask_set_cpu(cpu, &callmap);

	smp_send_message(callmap, BFIN_IPI_RESCHEDULE, NULL, NULL, 0);


	return;
	return;
}
}