netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] e100: timer power saving
@ 2007-09-06 18:51 Auke Kok
  2007-09-09 22:37 ` Arjan van de Ven
  2007-09-13  3:45 ` Jeff Garzik
  0 siblings, 2 replies; 3+ messages in thread
From: Auke Kok @ 2007-09-06 18:51 UTC (permalink / raw)
  To: jeff; +Cc: netdev, shemminger, arjan

From: Stephen Hemminger <shemminger@linux-foundation.org>

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>
---

 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 280313b..d7b9437 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -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,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-13  3:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-06 18:51 [PATCH] e100: timer power saving Auke Kok
2007-09-09 22:37 ` Arjan van de Ven
2007-09-13  3:45 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).