Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269
b: refs/heads/master
c: 45f23f1
h: refs/heads/master
i:
  267: eb77c39
v: v3
  • Loading branch information
Nishanth Aravamudan authored and Greg K-H committed Apr 19, 2005
1 parent a483d45 commit 4a87189
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 6d5e8254bf488a40b7ae2faafbffa232ab19d541
refs/heads/master: 45f23f189ca66d98b1f8b7f3d30a194d3188039d
10 changes: 6 additions & 4 deletions trunk/drivers/usb/serial/digi_acceleport.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ static struct usb_serial_device_type digi_acceleport_4_device = {
* and the sleep. In other words, spin_unlock_irqrestore and
* interruptible_sleep_on_timeout are "atomic" with respect to
* wake ups. This is used to implement condition variables.
*
* interruptible_sleep_on_timeout is deprecated and has been replaced
* with the equivalent code.
*/

static inline long cond_wait_interruptible_timeout_irqrestore(
Expand All @@ -576,13 +579,12 @@ static inline long cond_wait_interruptible_timeout_irqrestore(
{
DEFINE_WAIT(wait);

prepare_to_wait(q, &wait, TASK_UNINTERRUPTIBLE);
prepare_to_wait(q, &wait, TASK_INTERRUPTIBLE);
spin_unlock_irqrestore(lock, flags);
timeout = schedule_timeout(timeout);
finish_wait(q, &wait);

return timeout;

}


Expand Down Expand Up @@ -1596,7 +1598,7 @@ dbg( "digi_close: TOP: port=%d, open_count=%d", priv->dp_port_num, port->open_co
dbg( "digi_close: write oob failed, ret=%d", ret );

/* wait for final commands on oob port to complete */
prepare_to_wait(&priv->dp_flush_wait, &wait, TASK_UNINTERRUPTIBLE);
prepare_to_wait(&priv->dp_flush_wait, &wait, TASK_INTERRUPTIBLE);
schedule_timeout(DIGI_CLOSE_TIMEOUT);
finish_wait(&priv->dp_flush_wait, &wait);

Expand Down Expand Up @@ -1995,7 +1997,7 @@ opcode, line, status, val );

} else if( opcode == DIGI_CMD_IFLUSH_FIFO ) {

wake_up( &priv->dp_flush_wait );
wake_up_interruptible( &priv->dp_flush_wait );

}

Expand Down

0 comments on commit 4a87189

Please sign in to comment.