patch-2.1.127 linux/drivers/char/tpqic02.c

Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/stallion.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/char/tpqic02.c linux/drivers/char/tpqic02.c
@@ -588,9 +588,10 @@
 		/* not ready and no exception && timeout not expired yet */
 	while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) {
 		/* be `nice` to other processes on long operations... */
-		current->timeout = jiffies + 3*HZ/10;	/* nap 0.30 sec between checks, */
 		current->state = TASK_INTERRUPTIBLE;
-		schedule();		 /* but could be woken up earlier by signals... */
+		/* nap 0.30 sec between checks, */
+		/* but could be woken up earlier by signals... */
+		schedule_timeout(3*HZ/10);
 	}
 
 	/* don't use jiffies for this test because it may have changed by now */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov