Skip to content

Commit

Permalink
Input: polled device - schedule first poll immediately
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov committed Nov 23, 2009
1 parent f5f96b9 commit 381f3f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/input/input-polldev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 381f3f1

Please sign in to comment.