patch-2.1.127 linux/drivers/isdn/icn/icn.c
Next file: linux/drivers/isdn/isdn_tty.c
Previous file: linux/drivers/isdn/hisax/teles3c.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Thu Nov 5 09:58:44 1998
- Orig file:
v2.1.126/linux/drivers/isdn/icn/icn.c
- Orig date:
Sun Jun 7 11:16:30 1998
diff -u --recursive --new-file v2.1.126/linux/drivers/isdn/icn/icn.c linux/drivers/isdn/icn/icn.c
@@ -914,8 +914,7 @@
printk(KERN_DEBUG "Loader %d TO?\n", cardnumber);
#endif
current->state = TASK_INTERRUPTIBLE;
- current->timeout = jiffies + ICN_BOOT_TIMEOUT1;
- schedule();
+ schedule_timeout(ICN_BOOT_TIMEOUT1);
} else {
#ifdef BOOT_DEBUG
printk(KERN_DEBUG "Loader %d OK\n", cardnumber);
@@ -941,8 +940,7 @@
printk(KERN_DEBUG "SLEEP(%d)\n",slsec); \
while (slsec) { \
current->state = TASK_INTERRUPTIBLE; \
- current->timeout = jiffies + HZ; \
- schedule(); \
+ schedule_timeout(HZ); \
slsec--; \
} \
}
@@ -1104,8 +1102,7 @@
return -EIO;
}
current->state = TASK_INTERRUPTIBLE;
- current->timeout = jiffies + 10;
- schedule();
+ schedule_timeout(10);
}
}
writeb(0x20, &sbuf_n);
@@ -1129,8 +1126,7 @@
printk(KERN_DEBUG "Proto TO?\n");
#endif
current->state = TASK_INTERRUPTIBLE;
- current->timeout = jiffies + ICN_BOOT_TIMEOUT1;
- schedule();
+ schedule_timeout(ICN_BOOT_TIMEOUT1);
} else {
if ((card->secondhalf) || (!card->doubleS0)) {
#ifdef BOOT_DEBUG
@@ -1425,11 +1421,9 @@
if (!card->leased) {
card->leased = 1;
while (card->ptype == ISDN_PTYPE_UNKNOWN) {
- current->timeout = jiffies + ICN_BOOT_TIMEOUT1;
- schedule();
+ schedule_timeout(ICN_BOOT_TIMEOUT1);
}
- current->timeout = jiffies + ICN_BOOT_TIMEOUT1;
- schedule();
+ schedule_timeout(ICN_BOOT_TIMEOUT1);
sprintf(cbuf, "00;FV2ON\n01;EAZ%c\n02;EAZ%c\n",
(a & 1)?'1':'C', (a & 2)?'2':'C');
i = icn_writecmd(cbuf, strlen(cbuf), 0, card);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov