From: Ben Slusky Date: Mon, 7 Jul 2008 17:16:20 +0000 (-0400) Subject: [CPUFREQ] use deferrable delayed work init in conservative governor X-Git-Tag: v2.6.28-rc1~722^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8217e4f4c93e5fb59bb3cd1e6135213889349f86;p=linux-2.6-omap-h63xx.git [CPUFREQ] use deferrable delayed work init in conservative governor Venki Pallipadi made a similar change to the ondemand governor a while back (in commit 28287033e12463c8ff89f1ea8038783d0360391c). It seems to work just as well in the conservative governor, leading to fewer wakeups as reported by powertop. Signed-off-by: Ben Slusky Signed-off-by: Dave Jones --- diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index ac0bbf2d234..4ee53a4c6d2 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -460,6 +460,7 @@ static void do_dbs_timer(struct work_struct *work) static inline void dbs_timer_init(void) { + init_timer_deferrable(&dbs_work.timer); schedule_delayed_work(&dbs_work, usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); return;