From: Dmitry Torokhov <dtor@insightbb.com>
To: Mattia Dongili <malattia@linux.it>
Cc: linux-acpi@vger.kernel.org
Subject: [PATCH 1/2] Sonypi: use synchronize_irq instead of sycnronize_sched
Date: Wed, 31 Oct 2007 00:41:54 -0400 [thread overview]
Message-ID: <200710310041.54252.dtor@insightbb.com> (raw)
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) {
next reply other threads:[~2007-10-31 4:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 4:41 Dmitry Torokhov [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200710310041.54252.dtor@insightbb.com \
--to=dtor@insightbb.com \
--cc=linux-acpi@vger.kernel.org \
--cc=malattia@linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.