diff options
Diffstat (limited to 'arch/ia64/hp/sim/simserial.c')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index b42ec37be51c..19ee635eeb70 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -642,10 +642,8 @@ static void rs_close(struct tty_struct *tty, struct file * filp) | |||
642 | info->event = 0; | 642 | info->event = 0; |
643 | info->tty = 0; | 643 | info->tty = 0; |
644 | if (info->blocked_open) { | 644 | if (info->blocked_open) { |
645 | if (info->close_delay) { | 645 | if (info->close_delay) |
646 | current->state = TASK_INTERRUPTIBLE; | 646 | schedule_timeout_interruptible(info->close_delay); |
647 | schedule_timeout(info->close_delay); | ||
648 | } | ||
649 | wake_up_interruptible(&info->open_wait); | 647 | wake_up_interruptible(&info->open_wait); |
650 | } | 648 | } |
651 | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING); | 649 | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING); |