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

Commit 77a47ccc authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: WALT: fix window mis-alignment



The initial window start needs to be close to ktime ns = 0 to be
aligned with scheduler tick.

Change-Id: Ia91f74efce2f910106622a054a6fcd507e763ca5
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent a5bb67e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -913,11 +913,11 @@ void set_window_start(struct rq *rq)
{
	static int sync_cpu_available;

	if (rq->window_start)
	if (likely(rq->window_start))
		return;

	if (!sync_cpu_available) {
		rq->window_start = sched_ktime_clock();
		rq->window_start = 1;
		sync_cpu_available = 1;
	} else {
		struct rq *sync_rq = cpu_rq(cpumask_any(cpu_online_mask));