diff options
author | Ben Slusky <sluskyb@paranoiacs.org> | 2008-07-07 13:16:20 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2008-10-09 13:52:43 -0400 |
commit | 8217e4f4c93e5fb59bb3cd1e6135213889349f86 (patch) | |
tree | 1f801a2c87c9832590a20d416ad4e0799825a2d7 /drivers/cpufreq | |
parent | f1829e4a371f26430185a9d5b97b8d9d19824e08 (diff) |
[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 <sluskyb@paranoiacs.org>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index ac0bbf2d234f..4ee53a4c6d2c 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) | |||
460 | 460 | ||
461 | static inline void dbs_timer_init(void) | 461 | static inline void dbs_timer_init(void) |
462 | { | 462 | { |
463 | init_timer_deferrable(&dbs_work.timer); | ||
463 | schedule_delayed_work(&dbs_work, | 464 | schedule_delayed_work(&dbs_work, |
464 | usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); | 465 | usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); |
465 | return; | 466 | return; |