All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Sonypi: use synchronize_irq instead of sycnronize_sched
@ 2007-10-31  4:41 Dmitry Torokhov
  2007-10-31  4:43 ` [PATCH 2/2] Sonypi: fit input devices into sysfs tree Dmitry Torokhov
  2007-11-20 23:08 ` [PATCH 1/2] Sonypi: use synchronize_irq instead of sycnronize_sched Mattia Dongili
  0 siblings, 2 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2007-10-31  4:41 UTC (permalink / raw)
  To: Mattia Dongili; +Cc: linux-acpi

Hi Mattia,

It looks like you are also looking after sonypi...

-- 
Dmitry

Subject: Sonypi: use synchronize_irq instead of sycnronize_sched
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>

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>
---
 drivers/char/sonypi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/char/sonypi.c
===================================================================
--- linux.orig/drivers/char/sonypi.c
+++ linux/drivers/char/sonypi.c
@@ -1432,7 +1432,7 @@ static int __devexit sonypi_remove(struc
 {
 	sonypi_disable();
 
-	synchronize_sched();  /* Allow sonypi interrupt to complete. */
+	synchronize_irq(sonypi_device.irq);
 	flush_scheduled_work();
 
 	if (useinput) {

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-20 23:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-31  4:41 [PATCH 1/2] Sonypi: use synchronize_irq instead of sycnronize_sched Dmitry Torokhov
2007-10-31  4:43 ` [PATCH 2/2] Sonypi: fit input devices into sysfs tree Dmitry Torokhov
2007-11-20 23:09   ` Mattia Dongili
2007-11-20 23:08 ` [PATCH 1/2] Sonypi: use synchronize_irq instead of sycnronize_sched Mattia Dongili

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.