summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-driver.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-07-19 11:21:04 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-19 11:21:04 -0300
commit2765fab4352a93fc144aa60c42abdbc9387bbf8e (patch)
treeaeaa55cdedf37489c67e299c1c63291b980749bf /linux/drivers/media/video/ivtv/ivtv-driver.c
parent548a0e153cf92042c1392ca57c134cc1d49a83cd (diff)
downloadmediapointer-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.c3
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);