]> git.baikalelectronics.ru Git - kernel.git/commit
Input: keyboard - add locking around event handling
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Nov 2009 07:40:58 +0000 (23:40 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Nov 2009 07:41:15 +0000 (23:41 -0800)
commitc918757fc440db0a347621191ce6fc3d63097c70
tree69c02730498e25664f0ef32e2b97aa26ba93962c
parent63f03ccc473d046dfd8cd34dba024666a36a2f9d
Input: keyboard - add locking around event handling

Keyboard input handler is multiplexing events form all keyboard-like
devices in the system. Because of that per-device lock provided by
input core is not enough to prevent clashes in ked_event() and we
need our own lock to ensure that only one thread at a time executing
kbd_event().

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/char/keyboard.c