diff options
author | Steffen Klassert <klassert@mathematik.tu-chemnitz.de> | 2006-03-26 01:37:40 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 08:56:58 -0800 |
commit | b4ff6450f5336c492d1e2f184d3b8186e0716b7a (patch) | |
tree | 1d7a56cd1c0d60d4ec6805381ce63f63ca60ac8a /drivers/net/3c59x.c | |
parent | 125d5ce8a4e9e4babaed52518fecc9eb6958455d (diff) | |
download | linux-b4ff6450f5336c492d1e2f184d3b8186e0716b7a.tar.gz linux-b4ff6450f5336c492d1e2f184d3b8186e0716b7a.tar.bz2 linux-b4ff6450f5336c492d1e2f184d3b8186e0716b7a.zip |
[PATCH] 3c59x: decrease polling interval
Set the polling interval for media changes to 5 seconds if link is down and
60 seconds if link is up.
Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/3c59x.c')
-rw-r--r-- | drivers/net/3c59x.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 4ae78bf377cd..3343cbda4197 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c @@ -1943,6 +1943,10 @@ vortex_timer(unsigned long data) dev->name, media_tbl[dev->if_port].name, media_status); ok = 1; } + + if (!netif_carrier_ok(dev)) + next_tick = 5*HZ; + if ( ! ok) { unsigned int config; |