[PATCH] 3c59x: decrease polling interval
authorSteffen Klassert <klassert@mathematik.tu-chemnitz.de>
Sun, 26 Mar 2006 09:37:40 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:56:58 +0000 (08:56 -0800)
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>
drivers/net/3c59x.c

index 4ae78bf..3343cbd 100644 (file)
@@ -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;