lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 06 Sep 2007 11:51:37 -0700
From:	Auke Kok <>
Subject: [PATCH] e100: timer power saving

From: Stephen Hemminger <>

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

Signed-off-by: Stephen Hemminger <>
Signed-off-by: Auke Kok <>

 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)
 		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,
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists