Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69369
b: refs/heads/master
c: 14134b3
h: refs/heads/master
i:
  69367: 1a7b675
v: v3
  • Loading branch information
Stephen Hemminger authored and Dmitry Torokhov committed Sep 26, 2007
1 parent 6616be8 commit 130dff3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e15b02138b89d7bc053817e6f7601e92e29d371c
refs/heads/master: 14134b31ae646220a5a451e38aae1dd023d457cb
7 changes: 5 additions & 2 deletions trunk/drivers/input/input-polldev.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static int input_open_polled_device(struct input_dev *input)
{
struct input_polled_dev *dev = input->private;
int error;
unsigned long ticks;

error = input_polldev_start_workqueue();
if (error)
Expand All @@ -78,8 +79,10 @@ static int input_open_polled_device(struct input_dev *input)
if (dev->flush)
dev->flush(dev);

queue_delayed_work(polldev_wq, &dev->work,
msecs_to_jiffies(dev->poll_interval));
ticks = msecs_to_jiffies(dev->poll_interval);
if (ticks >= HZ)
ticks = round_jiffies(ticks);
queue_delayed_work(polldev_wq, &dev->work, ticks);

return 0;
}
Expand Down

0 comments on commit 130dff3

Please sign in to comment.