Skip to content

Commit

Permalink
Sonypi: use synchronize_irq instead of sycnronize_sched
Browse files Browse the repository at this point in the history
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: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Mattia Dongili <malattia@linux.it>
  • Loading branch information
Dmitry Torokhov committed Nov 21, 2007
1 parent dcf65cd commit 3cb93db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/sonypi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3cb93db

Please sign in to comment.