1
0
Fork 0

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>
hifive-unleashed-5.1
Dmitry Torokhov 2009-11-18 23:10:54 -08:00
parent f5f96b93e7
commit 381f3f1ccf
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}