Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62276
b: refs/heads/master
c: 818ca47
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jul 20, 2007
1 parent 0b8726f commit 9641337
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: f7518bd2d9ecad8c404c300e7872f7c2ab4961ad
refs/heads/master: 818ca4711eb8ec064c1cd5d7657f95ed6bc2bbed
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/c-qcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static unsigned int qcam_await_ready1(struct qcam_device *qcam,
unsigned long oldjiffies = jiffies;
unsigned int i;

for (oldjiffies = jiffies; (jiffies - oldjiffies) < (HZ/25); )
for (oldjiffies = jiffies; (jiffies - oldjiffies) < msecs_to_jiffies(40); )
if (qcam_ready1(qcam) == value)
return 0;

Expand All @@ -120,7 +120,7 @@ static unsigned int qcam_await_ready2(struct qcam_device *qcam, int value)
unsigned long oldjiffies = jiffies;
unsigned int i;

for (oldjiffies = jiffies; (jiffies - oldjiffies) < (HZ/25); )
for (oldjiffies = jiffies; (jiffies - oldjiffies) < msecs_to_jiffies(40); )
if (qcam_ready2(qcam) == value)
return 0;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/vino.c
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ static int vino_wait_for_frame(struct vino_channel_settings *vcs)

/* to ensure that schedule_timeout will return immediately
* if VINO interrupt was triggered meanwhile */
schedule_timeout_interruptible(HZ / 10);
schedule_timeout_interruptible(msecs_to_jiffies(100));

if (signal_pending(current))
err = -EINTR;
Expand Down

0 comments on commit 9641337

Please sign in to comment.