sky2: only bring up watchdog if link is active
authorStephen Hemminger <shemminger@linux-foundation.org>
Tue, 21 Aug 2007 21:34:03 +0000 (14:34 -0700)
committerJeff Garzik <jeff@garzik.org>
Sat, 25 Aug 2007 06:31:08 +0000 (02:31 -0400)
commit32c2c30085324aef9699934295281cca0161ef7e
treed335d8b73e84a830008d3fb37678b516af0c5a22
parentb23457737f073eaf5a7b797c2a195f83633e003d
sky2: only bring up watchdog if link is active

This fixes the extra timer overhead that people were whining about
as a 2.6.23 regression.

Running the watchdog timer all the time is unneeded. Change it
to run only if link is up, and reduce frequency to save power.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sky2.c
drivers/net/sky2.h