V4L/DVB (5906): ivtv-fb: replace HZ with msecs_to_jiffies
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 20 Jul 2007 21:17:18 +0000 (18:17 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:03:04 +0000 (22:03 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-fb.c

index 55265bd5c2505e7ec75832bd846138177900ccea..6f5da57299a10a3f05ae807dc9677bb85db3d879 100644 (file)
@@ -420,7 +420,7 @@ static int ivtvfb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long ar
 
                case FBIO_WAITFORVSYNC:
                        prepare_to_wait(&itv->vsync_waitq, &wait, TASK_INTERRUPTIBLE);
-                       if (!schedule_timeout(HZ/20)) rc = -ETIMEDOUT;
+                       if (!schedule_timeout(msecs_to_jiffies(50))) rc = -ETIMEDOUT;
                        finish_wait(&itv->vsync_waitq, &wait);
                        return rc;