Skip to content

Commit

Permalink
[PATCH] 3c59x: decrease polling interval
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steffen Klassert authored and Linus Torvalds committed Mar 26, 2006
1 parent 125d5ce commit b4ff645
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/3c59x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b4ff645

Please sign in to comment.