lkml.org 
[lkml]   [2018]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [BUG] Caused by: sched/deadline: Move CPU frequency selection triggering points
On Tue, 3 Jul 2018 11:31:20 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> On Tue, 3 Jul 2018 17:07:11 +0200
> Juri Lelli <juri.lelli@redhat.com> wrote:
>
> > This got into tip quite recently
> >
> > ecda2b66e263 ("sched/deadline: Fix missing clock update")
> >
> > could you please double check that you have that in your stack?
> >
>
> Unfortunately, I just tested it out, and it still locks up with this
> patch.
>

It appears that the below patch fixes the issue for me.

Is this a correct usage?

-- Steve

diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index fbfc3f1d368a..90b6e9df79b2 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -2085,6 +2085,8 @@ static int push_dl_task(struct rq *rq)
goto retry;
}

+ update_rq_clock(later_rq);
+
deactivate_task(rq, next_task, 0);
sub_running_bw(&next_task->dl, &rq->dl);
sub_rq_bw(&next_task->dl, &rq->dl);
\
 
 \ /
  Last update: 2018-07-03 17:51    [W:0.043 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site