From: Dmitry Torokhov Date: Thu, 19 Nov 2009 07:10:54 +0000 (-0800) Subject: Input: polled device - schedule first poll immediately X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=381f3f1ccf380d4d3c46987d04c199842d4c6e1f;p=mv-sheeva.git 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 --- diff --git a/drivers/input/input-polldev.c b/drivers/input/input-polldev.c index 31874275fed..40cf0b05892 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) 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; }