diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-19 11:21:04 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-19 11:21:04 -0300 |
commit | 2765fab4352a93fc144aa60c42abdbc9387bbf8e (patch) | |
tree | aeaa55cdedf37489c67e299c1c63291b980749bf /linux/drivers/media/video/ivtv/ivtv-driver.c | |
parent | 548a0e153cf92042c1392ca57c134cc1d49a83cd (diff) | |
download | mediapointer-dvb-s2-2765fab4352a93fc144aa60c42abdbc9387bbf8e.tar.gz mediapointer-dvb-s2-2765fab4352a93fc144aa60c42abdbc9387bbf8e.tar.bz2 |
Remove usage of HZ on ivtv driver, replacing by msecs_to_jiffies
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-driver.c')
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-driver.c b/linux/drivers/media/video/ivtv/ivtv-driver.c index ad7e51339..a7289f975 100644 --- a/linux/drivers/media/video/ivtv/ivtv-driver.c +++ b/linux/drivers/media/video/ivtv/ivtv-driver.c @@ -275,9 +275,10 @@ int ivtv_waitq(wait_queue_head_t *waitq) } /* Generic utility functions */ -int ivtv_sleep_timeout(int timeout, int intr) +int ivtv_msleep_timeout(unsigned int msecs, int intr) { int ret; + int timeout = msecs_to_jiffies(msecs); do { set_current_state(intr ? TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE); |