summaryrefslogtreecommitdiffstats
path: root/drivers/sgi/char/sgiserial.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-01-04 16:03:48 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-01-04 16:03:48 +0000
commit78c388aed2b7184182c08428db1de6c872d815f5 (patch)
tree4b2003b1b4ceb241a17faa995da8dd1004bb8e45 /drivers/sgi/char/sgiserial.c
parenteb7a5bf93aaa4be1d7c6181100ab7639e74d67f7 (diff)
Merge with Linux 2.1.131 and more MIPS goodies.
(Did I mention that CVS is buggy ...)
Diffstat (limited to 'drivers/sgi/char/sgiserial.c')
-rw-r--r--drivers/sgi/char/sgiserial.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/sgi/char/sgiserial.c b/drivers/sgi/char/sgiserial.c
index 2d2f8ebed..ccd0114f1 100644
--- a/drivers/sgi/char/sgiserial.c
+++ b/drivers/sgi/char/sgiserial.c
@@ -1263,10 +1263,9 @@ static void send_break( struct sgi_serial * info, int duration)
if (!info->port)
return;
current->state = TASK_INTERRUPTIBLE;
- current->timeout = jiffies + duration;
cli();
write_zsreg(info->zs_channel, 5, (info->curregs[5] | SND_BRK));
- schedule();
+ schedule_timeout(duration);
write_zsreg(info->zs_channel, 5, info->curregs[5]);
sti();
}
@@ -1467,8 +1466,7 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
if (info->blocked_open) {
if (info->close_delay) {
current->state = TASK_INTERRUPTIBLE;
- current->timeout = jiffies + info->close_delay;
- schedule();
+ schedule_timeout(info->close_delay);
}
wake_up_interruptible(&info->open_wait);
}