net/ewrk3: replace schedule_timeout()
Subsystems (2)
PATCH 1/1 net/ewrk3: replace schedule_timeout()
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Replace schedule_timeout() with msleep() to guarantee the task delays for the desired time.
drivers/net/ewrk3.c +1 -2
@@ -1679,8 +1679,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
Quoted 6 lines · Nishanth Aravamudan
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Replace
schedule_timeout()withmsleep()to guarantee the task delays for the desired time.
Seems like it should produce identical results to me.
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors