Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8217e4f4 authored by Ben Slusky's avatar Ben Slusky Committed by Dave Jones
Browse files

[CPUFREQ] use deferrable delayed work init in conservative governor



Venki Pallipadi made a similar change to the ondemand governor a while
back (in commit 28287033). It seems to
work just as well in the conservative governor, leading to fewer wakeups
as reported by powertop.

Signed-off-by: default avatarBen Slusky <sluskyb@paranoiacs.org>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent f1829e4a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -460,6 +460,7 @@ static void do_dbs_timer(struct work_struct *work)


static inline void dbs_timer_init(void)
static inline void dbs_timer_init(void)
{
{
	init_timer_deferrable(&dbs_work.timer);
	schedule_delayed_work(&dbs_work,
	schedule_delayed_work(&dbs_work,
			usecs_to_jiffies(dbs_tuners_ins.sampling_rate));
			usecs_to_jiffies(dbs_tuners_ins.sampling_rate));
	return;
	return;