Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61383
b: refs/heads/master
c: f3a43d3
h: refs/heads/master
i:
  61381: de58140
  61379: ea42dd8
  61375: 72a094e
v: v3
  • Loading branch information
Robert P. J. Day authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent cc28383 commit 6ae42ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 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: bd58df6d522d5a9c791f6a4820e480e9be60650d
refs/heads/master: f3a43d3082cd9c2308612e0331ad3b1b9d3a7a33
6 changes: 2 additions & 4 deletions trunk/drivers/media/video/msp3400-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ static int msp_read(struct i2c_client *client, int dev, int addr)
break;
v4l_warn(client, "I/O error #%d (read 0x%02x/0x%02x)\n", err,
dev, addr);
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(msecs_to_jiffies(10));
schedule_timeout_interruptible(msecs_to_jiffies(10));
}
if (err == 3) {
v4l_warn(client, "giving up, resetting chip. Sound will go off, sorry folks :-|\n");
Expand Down Expand Up @@ -197,8 +196,7 @@ static int msp_write(struct i2c_client *client, int dev, int addr, int val)
break;
v4l_warn(client, "I/O error #%d (write 0x%02x/0x%02x)\n", err,
dev, addr);
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(msecs_to_jiffies(10));
schedule_timeout_interruptible(msecs_to_jiffies(10));
}
if (err == 3) {
v4l_warn(client, "giving up, resetting chip. Sound will go off, sorry folks :-|\n");
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/media/video/vino.c
Original file line number Diff line number Diff line change
Expand Up @@ -2077,12 +2077,10 @@ static int vino_wait_for_frame(struct vino_channel_settings *vcs)
init_waitqueue_entry(&wait, current);
/* add ourselves into wait queue */
add_wait_queue(&vcs->fb_queue.frame_wait_queue, &wait);
/* and set current state */
set_current_state(TASK_INTERRUPTIBLE);

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

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

0 comments on commit 6ae42ae

Please sign in to comment.