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

Commit 1d2db9ab authored by Maria Yu's avatar Maria Yu Committed by Gerrit - the friendly Code Review server
Browse files

cpufreq: schedutil: Queue sugov irq work on policy online cpu



Got never update frequency if scheduled the irq
work on an offlined cpu and it will always pending.
Queue sugov irq work on any online cpu if current
cpu is offline.

Change-Id: I33fc691917b5866488b6aeb11ed902a2753130b2
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 702cec97
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -154,7 +154,7 @@ static void sugov_update_commit(struct sugov_policy *sg_policy, u64 time,
		trace_cpu_frequency(next_freq, smp_processor_id());
		trace_cpu_frequency(next_freq, smp_processor_id());
	} else {
	} else {
		sg_policy->work_in_progress = true;
		sg_policy->work_in_progress = true;
		irq_work_queue(&sg_policy->irq_work);
		sched_irq_work_queue(&sg_policy->irq_work);
	}
	}
}
}