aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/i8042.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2007-11-04 00:44:31 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-01-21 01:11:07 -0500
commita8399c512b5fa2cf80831f5b4cd3adffd299fbe3 (patch)
treec9fe3ec30e6b4086e18f6c68baf5d13ea55eeb81 /drivers/input/serio/i8042.c
parentf0b92b961b222fa1012058a773dfca1c5f21a498 (diff)
Input: i8042 - use synchronize_irq() instead of synchronize_sched()
RT guys advised me that in their kernels synchronize_sched() will not work to ensure that all IRQ handlers run to their completion and that synchronize_irq() should be used instead. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/serio/i8042.c')
-rw-r--r--drivers/input/serio/i8042.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 1a0cea3c5294..13da06fd0b8f 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -280,7 +280,14 @@ static void i8042_stop(struct serio *serio)
280 struct i8042_port *port = serio->port_data; 280 struct i8042_port *port = serio->port_data;
281 281
282 port->exists = 0; 282 port->exists = 0;
283 synchronize_sched(); 283
284 /*
285 * We synchronize with both AUX and KBD IRQs because there is
286 * a (very unlikely) chance that AUX IRQ is raised for KBD port
287 * and vice versa.
288 */
289 synchronize_irq(I8042_AUX_IRQ);
290 synchronize_irq(I8042_KBD_IRQ);
284 port->serio = NULL; 291 port->serio = NULL;
285} 292}
286 293