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

Commit 5e38624d authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: core: Fix stale rq clock usage in migration path"

parents bc524477 f727ad61
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -932,6 +932,8 @@ static struct rq *move_queued_task(struct rq *rq, struct rq_flags *rf,
	p->on_rq = TASK_ON_RQ_MIGRATING;
	dequeue_task(rq, p, DEQUEUE_NOCLOCK);
	double_lock_balance(rq, cpu_rq(new_cpu));
	if (!(rq->clock_update_flags & RQCF_UPDATED))
		update_rq_clock(rq);
	set_task_cpu(p, new_cpu);
	double_rq_unlock(cpu_rq(new_cpu), rq);