lkml.org 
[lkml]   [2019]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] sched/deadline: Temporary copy static parameters to boosted non-DEADLINE entities
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;
}

\
 
 \ /
  Last update: 2019-11-12 14:56    [W:0.067 / U:4.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site