diff options
-rw-r--r-- | drivers/serial/crisv10.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c index 40d3e7139cfe..08c42c000188 100644 --- a/drivers/serial/crisv10.c +++ b/drivers/serial/crisv10.c | |||
@@ -4416,10 +4416,8 @@ rs_close(struct tty_struct *tty, struct file * filp) | |||
4416 | info->event = 0; | 4416 | info->event = 0; |
4417 | info->tty = 0; | 4417 | info->tty = 0; |
4418 | if (info->blocked_open) { | 4418 | if (info->blocked_open) { |
4419 | if (info->close_delay) { | 4419 | if (info->close_delay) |
4420 | set_current_state(TASK_INTERRUPTIBLE); | 4420 | schedule_timeout_interruptible(info->close_delay); |
4421 | schedule_timeout(info->close_delay); | ||
4422 | } | ||
4423 | wake_up_interruptible(&info->open_wait); | 4421 | wake_up_interruptible(&info->open_wait); |
4424 | } | 4422 | } |
4425 | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING); | 4423 | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING); |
@@ -4469,8 +4467,7 @@ static void rs_wait_until_sent(struct tty_struct *tty, int timeout) | |||
4469 | while (info->xmit.head != info->xmit.tail || /* More in send queue */ | 4467 | while (info->xmit.head != info->xmit.tail || /* More in send queue */ |
4470 | (*info->ostatusadr & 0x007f) || /* more in FIFO */ | 4468 | (*info->ostatusadr & 0x007f) || /* more in FIFO */ |
4471 | (elapsed_usec < 2*info->char_time_usec)) { | 4469 | (elapsed_usec < 2*info->char_time_usec)) { |
4472 | set_current_state(TASK_INTERRUPTIBLE); | 4470 | schedule_timeout_interruptible(1); |
4473 | schedule_timeout(1); | ||
4474 | if (signal_pending(current)) | 4471 | if (signal_pending(current)) |
4475 | break; | 4472 | break; |
4476 | if (timeout && time_after(jiffies, orig_jiffies + timeout)) | 4473 | if (timeout && time_after(jiffies, orig_jiffies + timeout)) |