Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144782
b: refs/heads/master
c: 34a7864
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 9, 2009
1 parent 9ccbea3 commit 357ef1b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 52c3d29cfa2fa02f525a01abf28abf48f49801bf
refs/heads/master: 34a7864db1bc6d9ceb466251957fccf90c7106f8
9 changes: 6 additions & 3 deletions trunk/drivers/media/video/ivtv/ivtv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,17 @@ int ivtv_waitq(wait_queue_head_t *waitq)
/* Generic utility functions */
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);
timeout = schedule_timeout(timeout);
if (intr && (ret = signal_pending(current)))
return ret;
if (intr) {
int ret = signal_pending(current);

if (ret)
return ret;
}
} while (timeout);
return 0;
}
Expand Down

0 comments on commit 357ef1b

Please sign in to comment.