Skip to contentSkip to conversation

e100: timer power saving

PATCH Applied Auke Kok 3 participants 3 messages Sep 6, 2007 – Sep 13, 2007

Subsystems (2)
lore
Share & tools
lore

Auke Kok

author
#0 lore raw

PATCH 1/1 e100: timer power saving

From: Stephen Hemminger <[email protected]>

Since E100 timer is 2HZ, use rounding to make timer occur on the correct boundary.

---

 drivers/net/e100.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/e100.c +2 -1
index 280313b..d7b9437 100644
@@ -1604,7 +1604,8 @@ static void e100_watchdog(unsigned long data)
 	else
 		nic->flags &= ~ich_10h_workaround;
 
-	mod_timer(&nic->watchdog, jiffies + E100_WATCHDOG_PERIOD);
+	mod_timer(&nic->watchdog,
+		  round_jiffies(jiffies + E100_WATCHDOG_PERIOD));
 }
 
 static void e100_xmit_prepare(struct nic *nic, struct cb *cb,