[PATCH] drivers/net: fix-up schedule_timeout() usage
Use schedule_timeout_interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Cc: Jeff Garzik <jgarzik@pobox.com> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
committed by
Jeff Garzik
parent
343c686c04
commit
3173c8907f
@@ -1101,7 +1101,7 @@ static int olympic_close(struct net_device *dev)
|
||||
|
||||
while(olympic_priv->srb_queued) {
|
||||
|
||||
t = schedule_timeout(60*HZ);
|
||||
t = schedule_timeout_interruptible(60*HZ);
|
||||
|
||||
if(signal_pending(current)) {
|
||||
printk(KERN_WARNING "%s: SRB timed out.\n",dev->name);
|
||||
|
Reference in New Issue
Block a user