patch-1.3.22 linux/drivers/char/cyclades.c
Next file: linux/drivers/char/lp.c
Previous file: linux/drivers/char/console.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Tue Aug 29 10:15:51 1995
- Orig file:
v1.3.21/linux/drivers/char/cyclades.c
- Orig date:
Wed Aug 2 13:21:00 1995
diff -u --recursive --new-file v1.3.21/linux/drivers/char/cyclades.c linux/drivers/char/cyclades.c
@@ -1025,13 +1025,13 @@
* Delay for 0.1 seconds -- we use a busy loop since this may
* occur during the bootup sequence
*/
- timeout = jiffies+10;
+ timeout = jiffies+HZ/10;
while (timeout >= jiffies)
;
cy_triggered = 0; /* Reset after letting things settle */
- timeout = jiffies+10;
+ timeout = jiffies+HZ/10;
while (timeout >= jiffies)
;
@@ -1072,7 +1072,7 @@
base_addr[CySRER] |= CyTxMpty;
sti();
- timeout = jiffies+2;
+ timeout = jiffies+2*HZ/100;
while (timeout >= jiffies) {
if (cy_irq_triggered)
break;
@@ -2302,7 +2302,7 @@
if (info->flags & ASYNC_CALLOUT_ACTIVE)
info->callout_termios = *tty->termios;
if (info->flags & ASYNC_INITIALIZED)
- tty_wait_until_sent(tty, 3000); /* 30 seconds timeout */
+ tty_wait_until_sent(tty, 30*HZ); /* 30 seconds timeout */
shutdown(info);
if (tty->driver.flush_buffer)
tty->driver.flush_buffer(tty);
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this