diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-09-06 14:51:37 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:02 -0400 |
commit | 34c6417b7087a4818e7dca2e5d66c3361cee80a1 (patch) | |
tree | 5cbe54a49c2c726d60a29d533f3518409c85ff0f /drivers | |
parent | 9a799d71034c4e2b168740c8a8530591011313d5 (diff) |
e100: timer power saving
Since E100 timer is 2HZ, use rounding to make timer occur on the
correct boundary.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/e100.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index e25f5ec2b279..10907f158bac 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -1605,7 +1605,8 @@ static void e100_watchdog(unsigned long data) | |||
1605 | else | 1605 | else |
1606 | nic->flags &= ~ich_10h_workaround; | 1606 | nic->flags &= ~ich_10h_workaround; |
1607 | 1607 | ||
1608 | mod_timer(&nic->watchdog, jiffies + E100_WATCHDOG_PERIOD); | 1608 | mod_timer(&nic->watchdog, |
1609 | round_jiffies(jiffies + E100_WATCHDOG_PERIOD)); | ||
1609 | } | 1610 | } |
1610 | 1611 | ||
1611 | static void e100_xmit_prepare(struct nic *nic, struct cb *cb, | 1612 | static void e100_xmit_prepare(struct nic *nic, struct cb *cb, |