]> git.baikalelectronics.ru Git - kernel.git/commit
Input: libps2 - better handle bad scheduler decisions
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 May 2009 16:51:31 +0000 (09:51 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 May 2009 17:34:02 +0000 (10:34 -0700)
commite42fdeea08e0e4476e7c41225235cb9ea33b5d55
tree290d6ca606ad960fda685992b6a087cc6b56c1e1
parent74b26f05d666d98e3cf3d79ac34d8b28f150c20f
Input: libps2 - better handle bad scheduler decisions

Sometimes devices send us their responses in time but due to
unfortunate scheduling decisions the receiving thread does not
get scheduled till much later and we erroneously decide that
device timed out. Work around this problem by checking whether we
received the data we needed instead of checking timeout
condition.

Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/libps2.c