Skip to contentSkip to conversation

use deferrable delayed work init in conservative governor

PATCH New Ben Slusky 1 participant 1 message Jul 7, 2008 CPU frequency scaling framework

lore
Share & tools
lore

Ben Slusky

author
#0 lore raw

PATCH 1/1 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.

---
  drivers/cpufreq/cpufreq_conservative.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/drivers/cpufreq/cpufreq_conservative.c
index 5d3a04b..e0397e5 100644

drivers/cpufreq/cpufreq_conservative.c +1 -0
@@ -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;
Signature · 1 line
1.5.3.6