diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-09-11 05:09:55 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-14 08:33:24 -0400 |
commit | 3173c8907ffb2c64456142da3df2bd0500bd59e0 (patch) | |
tree | dcd3700a2c37e24a2b5911bb5429aee715684926 /drivers/net/8139cp.c | |
parent | 343c686c04eec556645f251f7d6c9b3d7335dae0 (diff) |
[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>
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index ebc20d9e7d7b..bd99c268e2da 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -1029,8 +1029,7 @@ static void cp_reset_hw (struct cp_private *cp) | |||
1029 | if (!(cpr8(Cmd) & CmdReset)) | 1029 | if (!(cpr8(Cmd) & CmdReset)) |
1030 | return; | 1030 | return; |
1031 | 1031 | ||
1032 | set_current_state(TASK_UNINTERRUPTIBLE); | 1032 | schedule_timeout_uninterruptible(10); |
1033 | schedule_timeout(10); | ||
1034 | } | 1033 | } |
1035 | 1034 | ||
1036 | printk(KERN_ERR "%s: hardware reset timeout\n", cp->dev->name); | 1035 | printk(KERN_ERR "%s: hardware reset timeout\n", cp->dev->name); |