[PATCH] sch_generic.c: Make dev_watchdog use deferrable timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

Signed-off-by: Parag Warudkar <[email protected]>

--- 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;
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux