diff options
Diffstat (limited to 'drivers/char/ip2/i2lib.c')
| -rw-r--r-- | drivers/char/ip2/i2lib.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/ip2/i2lib.c b/drivers/char/ip2/i2lib.c index 82c5f30375ac..ba85eb1b6ec7 100644 --- a/drivers/char/ip2/i2lib.c +++ b/drivers/char/ip2/i2lib.c | |||
| @@ -655,8 +655,7 @@ i2QueueCommands(int type, i2ChanStrPtr pCh, int timeout, int nCommands, | |||
| 655 | timeout--; // So negative values == forever | 655 | timeout--; // So negative values == forever |
| 656 | 656 | ||
| 657 | if (!in_interrupt()) { | 657 | if (!in_interrupt()) { |
| 658 | current->state = TASK_INTERRUPTIBLE; | 658 | schedule_timeout_interruptible(1); // short nap |
| 659 | schedule_timeout(1); // short nap | ||
| 660 | } else { | 659 | } else { |
| 661 | // we cannot sched/sleep in interrrupt silly | 660 | // we cannot sched/sleep in interrrupt silly |
| 662 | return 0; | 661 | return 0; |
| @@ -1132,8 +1131,7 @@ i2Output(i2ChanStrPtr pCh, const char *pSource, int count, int user ) | |||
| 1132 | 1131 | ||
| 1133 | ip2trace (CHANN, ITRC_OUTPUT, 61, 0 ); | 1132 | ip2trace (CHANN, ITRC_OUTPUT, 61, 0 ); |
| 1134 | 1133 | ||
| 1135 | current->state = TASK_INTERRUPTIBLE; | 1134 | schedule_timeout_interruptible(2); |
| 1136 | schedule_timeout(2); | ||
| 1137 | if (signal_pending(current)) { | 1135 | if (signal_pending(current)) { |
| 1138 | break; | 1136 | break; |
| 1139 | } | 1137 | } |
