Commit a8399c51 authored by Dmitry Torokhov's avatar Dmitry Torokhov

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: default avatarDmitry Torokhov <dtor@mail.ru>
parent f0b92b96
...@@ -280,7 +280,14 @@ static void i8042_stop(struct serio *serio) ...@@ -280,7 +280,14 @@ static void i8042_stop(struct serio *serio)
struct i8042_port *port = serio->port_data; struct i8042_port *port = serio->port_data;
port->exists = 0; port->exists = 0;
synchronize_sched();
/*
* We synchronize with both AUX and KBD IRQs because there is
* a (very unlikely) chance that AUX IRQ is raised for KBD port
* and vice versa.
*/
synchronize_irq(I8042_AUX_IRQ);
synchronize_irq(I8042_KBD_IRQ);
port->serio = NULL; port->serio = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment