patch-2.1.127 linux/drivers/char/esp.c
Next file: linux/drivers/char/ftape/lowlevel/fdc-io.c
Previous file: linux/drivers/char/epca.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Oct 31 11:06:21 1998
- Orig file:
v2.1.126/linux/drivers/char/esp.c
- Orig date:
Fri Oct 23 22:01:20 1998
diff -u --recursive --new-file v2.1.126/linux/drivers/char/esp.c linux/drivers/char/esp.c
@@ -2147,8 +2147,7 @@
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);
}
@@ -2182,8 +2181,7 @@
(serial_in(info, UART_ESI_STAT2) != 0xff)) {
current->state = TASK_INTERRUPTIBLE;
current->counter = 0;
- current->timeout = jiffies + char_time;
- schedule();
+ schedule_timeout(char_time);
if (signal_pending(current))
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov