projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f96b9
)
Input: polled device - schedule first poll immediately
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 19 Nov 2009 07:10:54 +0000
(23:10 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 23 Nov 2009 18:15:40 +0000
(10:15 -0800)
It does not make sense to wait poll_interval before performing first
read after opening the device, schedule the read immediately instead.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input-polldev.c
patch
|
blob
|
history
diff --git
a/drivers/input/input-polldev.c
b/drivers/input/input-polldev.c
index 31874275fed02c048b0d20a2d57d176e91035fdf..40cf0b058927324cf2860dfb6842dcd7e9ff1819 100644
(file)
--- a/
drivers/input/input-polldev.c
+++ b/
drivers/input/input-polldev.c
@@
-88,8
+88,7
@@
static int input_open_polled_device(struct input_dev *input)
if (dev->open)
dev->open(dev);
- queue_delayed_work(polldev_wq, &dev->work,
- msecs_to_jiffies(dev->poll_interval));
+ queue_delayed_work(polldev_wq, &dev->work, 0);
return 0;
}