Skip to content

Commit

Permalink
[NET]: Make net watchdog timers 1 sec jiffy aligned.
Browse files Browse the repository at this point in the history
round_jiffies for net dev watchdog timer.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Venkatesh Pallipadi authored and David S. Miller committed Jun 4, 2007
1 parent b206a65 commit 60468d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sched/sch_generic.c
Expand Up @@ -224,7 +224,8 @@ void __netdev_watchdog_up(struct net_device *dev)
if (dev->tx_timeout) {
if (dev->watchdog_timeo <= 0)
dev->watchdog_timeo = 5*HZ;
if (!mod_timer(&dev->watchdog_timer, jiffies + dev->watchdog_timeo))
if (!mod_timer(&dev->watchdog_timer,
round_jiffies(jiffies + dev->watchdog_timeo)))
dev_hold(dev);
}
}
Expand Down

0 comments on commit 60468d5

Please sign in to comment.