]> git.baikalelectronics.ru Git - kernel.git/commit
Input: polled device - do not start polling if interval is zero
authorSamu Onkalo <samu.p.onkalo@nokia.com>
Mon, 23 Nov 2009 18:01:33 +0000 (10:01 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Nov 2009 18:16:09 +0000 (10:16 -0800)
commitc1c3f2601f5cbea7f3ffc7524547826cd3f317ab
treec7e719cb1b4b8dfefcfbc5a96af28dc194aff52e
parente73f2a678d78fc64fc98778d2642fc09585b91c0
Input: polled device - do not start polling if interval is zero

If the poll interval is set to 0 via new sysfs entry and device is
opened after that, polling is started with interval 0. This causes
huge CPU load. Same happens if the rate was 0 when the device was
closed and then reopened.

Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input-polldev.c