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

Commit fea8806a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Fix inaccurate accounting for real-time task"

parents cd2d7176 8fd5aa3b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1423,6 +1423,15 @@ static struct task_struct *_pick_next_task_rt(struct rq *rq)
		rt_rq = group_rt_rq(rt_se);
	} while (rt_rq);

	/*
	 * Force update of rq->clock_task in case we failed to do so in
	 * put_prev_task. A stale value can cause us to over-charge execution
	 * time to real-time task, that could trigger throttling unnecessarily
	 */
	if (rq->skip_clock_update > 0) {
		rq->skip_clock_update = 0;
		update_rq_clock(rq);
	}
	p = rt_task_of(rt_se);
	p->se.exec_start = rq->clock_task;