linux/drivers/input
Dmitry Torokhov 486c8aba39 Input: serio_raw - ensure we don't block in non-blocking read
Avoid calling wait_event_interruptible() if client requested non-blocking
read, since it is not guaranteed that another thread will not consume
event after we checked if serio_raw->head != serio_raw->tail.

Also ensure we do not return 0 but keep waiting instead in blocking case,
when another thread steals "our" byte.

Reviewed-by: David Herrmann <dh.herrmann@googlemail.com>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2012-04-20 23:11:01 -07:00
..
gameport
joystick Input: gameport - use module_gameport_driver 2012-04-04 09:25:44 -07:00
keyboard Input: tc3589x-keypad - remove unnecessary checks 2012-04-20 23:08:48 -07:00
misc Input: cma3000-d0x - remove unneeded checks 2012-04-20 23:07:39 -07:00
mouse Input: serio - use module_serio_driver 2012-04-04 09:25:43 -07:00
serio Input: serio_raw - ensure we don't block in non-blocking read 2012-04-20 23:11:01 -07:00
tablet Input: wacom - add Intuos5 multitouch sensor support 2012-04-04 09:25:42 -07:00
touchscreen Input: lpc32xx_ts - add device tree support 2012-04-20 23:05:09 -07:00
apm-power.c
evbug.c
evdev.c Merge branch 'for-next' of github.com:rydberg/linux into next 2012-03-09 10:56:35 -08:00
ff-core.c
ff-memless.c
fixp-arith.h
input-compat.c drivers/input: add export.h to symbol exporting files. 2011-10-31 19:31:16 -04:00
input-compat.h
input-mt.c drivers/input: add export.h to symbol exporting files. 2011-10-31 19:31:16 -04:00
input-polldev.c Merge commit 'v3.2-rc3' into next 2011-11-29 01:51:07 -08:00
input.c Input: Use accessor for MT values 2012-02-02 14:42:20 +01:00
joydev.c
Kconfig Input: of_keymap - add device tree bindings for simple key matrices 2012-03-13 21:37:04 -07:00
Makefile Input: of_keymap - add device tree bindings for simple key matrices 2012-03-13 21:37:04 -07:00
mousedev.c
of_keymap.c Input: of_keymap - add device tree bindings for simple key matrices 2012-03-13 21:37:04 -07:00
sparse-keymap.c drivers/input: Add module.h to modular drivers implicitly using it 2011-10-31 19:31:16 -04:00