]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[CPUFREQ] use deferrable delayed work init in conservative governor
authorBen Slusky <sluskyb@paranoiacs.org>
Mon, 7 Jul 2008 17:16:20 +0000 (13:16 -0400)
committerDave Jones <davej@redhat.com>
Thu, 9 Oct 2008 17:52:43 +0000 (13:52 -0400)
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 <sluskyb@paranoiacs.org>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq_conservative.c

index ac0bbf2d234f3c72ecb5e6d781bc25afeef1afae..4ee53a4c6d2c29d0d4b0091552ea8ba38d23ea7c 100644 (file)
@@ -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;