lkml.org 
[lkml]   [2007]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] sch_generic.c: Make dev_watchdog use deferrable timer

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;
}

\
 
 \ /
  Last update: 2007-12-19 02:07    [W:0.017 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site