mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 02:50:53 +07:00
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>
This commit is contained in:
parent
9a799d7103
commit
34c6417b70
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user