Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1457000 > unrolled thread

Re: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity

Started byJuri Lelli <juri.lelli@arm.com>
First post2016-08-05 12:20 +0200
Last post2016-08-05 12:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v4] sched/deadline: remove useless param from  setup_new_dl_entity Juri Lelli <juri.lelli@arm.com> - 2016-08-05 12:20 +0200

#1457000 — Re: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity

FromJuri Lelli <juri.lelli@arm.com>
Date2016-08-05 12:20 +0200
SubjectRe: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity
Message-ID<s2Kop-69A-3@gated-at.bofh.it>
On 22/07/16 10:58, Xunlei Pang wrote:
> On 2016/07/21 at 22:46, Juri Lelli wrote:
[...]
> > @@ -1734,9 +1724,11 @@ static void switched_to_dl(struct rq *rq, struct task_struct *p)
> >  	if (task_on_rq_queued(p)) {
> >  		/*
> >  		 * If p is not queued we will update its parameters at next
> > -		 * wakeup.
> > +		 * wakeup. If p is dl_boosted we already updated its params in
> > +		 * rt_mutex_setprio()->enqueue_task(..., ENQUEUE_REPLENISH).
> >  		 */
> > -		if (dl_time_before(p->dl.deadline, rq_clock(rq)))
> > +		if (dl_time_before(p->dl.deadline, rq_clock(rq)) &&
> > +				!p->dl.dl_boosted)
> 
> Hi Juri,
> 
> It looks good to me, only one question:
> For on_rq boosted to deadline, p->dl.deadline has been updated after rq_lock(rq) by
> rt_mutex_setprio()->enqueue_task(..., ENQUEUE_REPLENISH) and no rq clock update
> afterwards, so dl_time_before() will be false, seems p->dl.dl_boosted check is needless.
> 

Right. I removed it and posted v5. Please have a look.

Best,

- Juri

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web