public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/4] Make net watchdog timers 1 sec jiffy aligned
@ 2007-05-29 18:01 Venki Pallipadi
  2007-05-30 17:59 ` Andrew Morton
  2007-06-01  4:30 ` David Miller
  0 siblings, 2 replies; 16+ messages in thread
From: Venki Pallipadi @ 2007-05-29 18:01 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


round_jiffies for net dev watchdog timer.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>

Index: linux-2.6.22-rc-mm/net/sched/sch_generic.c
===================================================================
--- linux-2.6.22-rc-mm.orig/net/sched/sch_generic.c	2007-05-24 11:16:03.000000000 -0700
+++ linux-2.6.22-rc-mm/net/sched/sch_generic.c	2007-05-25 15:10:02.000000000 -0700
@@ -224,7 +224,8 @@
 	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);
 	}
 }

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

end of thread, other threads:[~2007-06-01  4:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 18:01 [PATCH 3/4] Make net watchdog timers 1 sec jiffy aligned Venki Pallipadi
2007-05-30 17:59 ` Andrew Morton
2007-05-30 18:20   ` Stephen Hemminger
2007-05-30 18:42     ` Patrick McHardy
2007-05-30 19:15       ` Venki Pallipadi
2007-05-30 19:32         ` Patrick McHardy
2007-05-30 19:55       ` David Miller
2007-05-30 20:30         ` Stephen Hemminger
2007-05-30 21:35           ` Venki Pallipadi
2007-05-31 10:36             ` Andi Kleen
2007-05-30 21:10         ` Venki Pallipadi
2007-05-30 22:10         ` Matt Mackall
2007-05-30 22:29           ` David Miller
2007-05-30 22:36             ` Matt Mackall
2007-05-30 23:02               ` David Miller
2007-06-01  4:30 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox