From: Stephen Hemminger Date: Thu, 6 Sep 2007 18:51:37 +0000 (-0700) Subject: e100: timer power saving X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~42295^2~504 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=34c6417b7087a4818e7dca2e5d66c3361cee80a1;p=mirror_ubuntu-focal-kernel.git e100: timer power saving 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 Signed-off-by: Jeff Garzik --- 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) 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,