Re: [PATCH 2/2] sched/deadline: Temporary copy static parameters to boosted non-DEADLINE entities

From: Peter Zijlstra
Date: Tue Nov 12 2019 - 08:56:44 EST


On Tue, Nov 12, 2019 at 11:51:30AM +0100, Peter Zijlstra wrote:

> dl_se->deadline = rq_clock(rq) + dl_se->dl_deadline;
> + dl_se->normal_deadline = dl_se->deadline;

Or rather something like:

static inline dl_set_deadline(struct sched_dl_entity *dl_se, u64 deadline)
{
dl_se->normal_deadline = deadline;
/*
* We should never update the deadline while boosted,
* but if we do, make sure to not change the effective
* deadline until deboost.
*/
if (WARN_ON_ONCE(dl_se->dl_boosted))
return;
dl_se->deadline = dl_se->normal_deadline;
}