提交 a8399c51 编写于 作者: D 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: NDmitry Torokhov <dtor@mail.ru>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册