netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sch_generic.c: Make dev_watchdog use deferrable timer
@ 2007-12-19  1:04 Parag Warudkar
  2007-12-19  2:18 ` [PATCH 1/2] net: flow hash timer power saving Stephen Hemminger
       [not found] ` <20071218174120.4b0ef6dd@shemminger-laptop>
  0 siblings, 2 replies; 7+ messages in thread
From: Parag Warudkar @ 2007-12-19  1:04 UTC (permalink / raw)
  To: netdev; +Cc: davem, linux-kernel, akpm


Reduces the number of wakeups from idle per second, makes powertop happy.

Signed-off-by: Parag Warudkar <parag.warudkar@gmail.com>

--- linux-2.6/net/sched/sch_generic.c	2007-12-07 10:04:43.000000000 -0500
+++ linux-2.6-work/net/sched/sch_generic.c	2007-12-16 17:57:05.000000000 -0500
@@ -213,7 +213,7 @@

  static void dev_watchdog_init(struct net_device *dev)
  {
-	init_timer(&dev->watchdog_timer);
+	init_timer_deferrable(&dev->watchdog_timer);
  	dev->watchdog_timer.data = (unsigned long)dev;
  	dev->watchdog_timer.function = dev_watchdog;
  }

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

end of thread, other threads:[~2007-12-20 23:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19  1:04 [PATCH] sch_generic.c: Make dev_watchdog use deferrable timer Parag Warudkar
2007-12-19  2:18 ` [PATCH 1/2] net: flow hash timer power saving Stephen Hemminger
     [not found] ` <20071218174120.4b0ef6dd@shemminger-laptop>
2007-12-19  2:18   ` [PATCH 2/2] net: neighbor " Stephen Hemminger
2007-12-19  7:23     ` Eric Dumazet
2007-12-20 17:10       ` Stephen Hemminger
2007-12-20 18:16         ` Parag Warudkar
2007-12-20 23:28       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).