patch-2.1.127 linux/drivers/misc/parport_ieee1284.c

Next file: linux/drivers/misc/parport_pc.c
Previous file: linux/drivers/macintosh/mediabay.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/misc/parport_ieee1284.c linux/drivers/misc/parport_ieee1284.c
@@ -34,8 +34,7 @@
 			schedule();
 	}
 	current->state = TASK_INTERRUPTIBLE;
-	current->timeout = jiffies+4;
-	schedule();				/* wait for 40ms */
+	schedule_timeout(HZ/25);				/* wait for 40ms */
 	status = parport_read_status(port);
 	return ((status & mask) == result)?0:1;
 }		

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