Skip to content

Commit

Permalink
[CPUFREQ] use deferrable delayed work init in conservative governor
Browse files Browse the repository at this point in the history
Venki Pallipadi made a similar change to the ondemand governor a while
back (in commit 2828703). 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>
  • Loading branch information
Ben Slusky authored and Dave Jones committed Oct 9, 2008
1 parent f1829e4 commit 8217e4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/cpufreq/cpufreq_conservative.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8217e4f

Please sign in to comment.