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

Commit 3cb93db6 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Sonypi: use synchronize_irq instead of sycnronize_sched



We know exactly what IRQ we are using, so synchronize_irq()
suits much better. Plus synchronize_sched() will not work
for us in -rt kernels.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Acked-by: default avatarMattia Dongili <malattia@linux.it>
parent dcf65cd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1434,7 +1434,7 @@ static int __devexit sonypi_remove(struct platform_device *dev)
{
	sonypi_disable();

	synchronize_sched();  /* Allow sonypi interrupt to complete. */
	synchronize_irq(sonypi_device.irq);
	flush_scheduled_work();

	if (useinput) {