From: Steffen Klassert Date: Sun, 26 Mar 2006 09:37:40 +0000 (-0800) Subject: [PATCH] 3c59x: decrease polling interval X-Git-Tag: v2.6.17-rc1~616 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4ff6450f5336c492d1e2f184d3b8186e0716b7a;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 4ae78bf377..3343cbda41 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;