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)
commit21cea58e49cf59e7c77ce2a01be432458e9f99a9
tree69c02730498e25664f0ef32e2b97aa26ba93962c
parentdbe1420b4ba398feef035f7cd8181ec2e492228b
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