[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
@@ -678,10 +678,9 @@ static void turnaround_delay(const struct stir_cb *stir, long us)
|
||||
return;
|
||||
|
||||
ticks = us / (1000000 / HZ);
|
||||
if (ticks > 0) {
|
||||
current->state = TASK_INTERRUPTIBLE;
|
||||
schedule_timeout(1 + ticks);
|
||||
} else
|
||||
if (ticks > 0)
|
||||
schedule_timeout_interruptible(1 + ticks);
|
||||
else
|
||||
udelay(us);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user