patch-2.2.0-pre2 linux/drivers/char/specialix.c
Next file: linux/drivers/char/stallion.c
Previous file: linux/drivers/char/riscom8.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Tue Dec 29 11:29:54 1998
- Orig file:
v2.2.0-pre1/linux/drivers/char/specialix.c
- Orig date:
Sun Nov 8 14:02:56 1998
diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/char/specialix.c linux/drivers/char/specialix.c
@@ -353,7 +353,7 @@
{
unsigned long i;
- for (i = jiffies + delay; i > jiffies; ) ;
+ for (i = jiffies + delay; time_after(i, jiffies); ) ;
}
@@ -1073,7 +1073,7 @@
/* Set baud rate for port */
tmp = (((SX_OSCFREQ + baud_table[baud]/2) / baud_table[baud] +
CD186x_TPC/2) / CD186x_TPC);
- if ((tmp < 0x10) && (again < jiffies)) {
+ if ((tmp < 0x10) && time_before(again, jiffies)) {
again = jiffies + HZ * 60;
/* Page 48 of version 2.0 of the CL-CD1865 databook */
if (tmp >= 12) {
@@ -1551,8 +1551,8 @@
timeout = jiffies+HZ;
while(port->IER & IER_TXEMPTY) {
current->state = TASK_INTERRUPTIBLE;
- schedule_timeout(port->timeout);
- if (jiffies > timeout) {
+ schedule_timeout(port->timeout);
+ if (time_after(jiffies, timeout)) {
printk (KERN_INFO "Timeout waiting for close\n");
break;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov