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

Next file: linux/drivers/char/radio-sf16fmi.c
Previous file: linux/drivers/char/pcxx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/char/qpmouse.c linux/drivers/char/qpmouse.c
@@ -245,8 +245,7 @@
 		if (inb_p(qp_status)&(QP_RX_FULL))
 			inb_p(qp_data);
 		current->state = TASK_INTERRUPTIBLE;
-		current->timeout = jiffies + (5*HZ + 99) / 100;
-		schedule();
+		schedule_timeout((5*HZ + 99) / 100);
 		retries++;
 	}
 	return !(retries==MAX_RETRIES);

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