patch-2.1.127 linux/drivers/net/sktr.c

Next file: linux/drivers/net/tlan.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/net/sktr.c linux/drivers/net/sktr.c
@@ -1526,12 +1526,11 @@
 {
 	long tmp;
 
-	tmp = jiffies + time/(1000000/HZ);
+	tmp = time/(1000000/HZ);
 	do {
-		current->timeout	= tmp;
 		current->state 		= TASK_INTERRUPTIBLE;
-		schedule();
-	} while(tmp > jiffies);
+		tmp = schedule_timeout(tmp);
+	} while(tmp);
 
 	return;
 }

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