diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-11-19 02:10:54 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-11-23 13:15:40 -0500 |
commit | 381f3f1ccf380d4d3c46987d04c199842d4c6e1f (patch) | |
tree | 0effbd07b93dac65ae71dc3276dbe99e0fb50b81 /drivers/input | |
parent | f5f96b93e745dd054110d511779e7ec5cfdfdfe6 (diff) |
Input: polled device - schedule first poll immediately
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/input-polldev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/input-polldev.c b/drivers/input/input-polldev.c index 31874275fed0..40cf0b058927 100644 --- 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) | |||
88 | if (dev->open) | 88 | if (dev->open) |
89 | dev->open(dev); | 89 | dev->open(dev); |
90 | 90 | ||
91 | queue_delayed_work(polldev_wq, &dev->work, | 91 | queue_delayed_work(polldev_wq, &dev->work, 0); |
92 | msecs_to_jiffies(dev->poll_interval)); | ||
93 | 92 | ||
94 | return 0; | 93 | return 0; |
95 | } | 94 | } |