Skip to contentSkip to conversation

net/ewrk3: replace

PATCH New Nishanth Aravamudan 1 participant 1 message Sep 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 12/38 net/ewrk3: replace

Any comments would be appreciated.

Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.

drivers/net/ewrk3.c +1 -2
@@ -1681,8 +1681,7 @@ static int ewrk3_ethtool_ioctl(struct ne
 
 			/* Wait a little while */
 			spin_unlock_irqrestore(&lp->hw_lock, flags);
-			set_current_state(TASK_UNINTERRUPTIBLE);
-			schedule_timeout(HZ>>2);
+			msleep(250);
 			spin_lock_irqsave(&lp->hw_lock, flags);
 
 			/* Exit if we got a signal */

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors