summaryrefslogtreecommitdiff
path: root/kernel/sched/deadline.c
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@parallels.com>2015-02-04 12:09:32 +0300
committerIngo Molnar <mingo@kernel.org>2015-02-18 16:17:12 +0100
commit6f1607f1bdb4f9991a8123675a03c1764b2932fe (patch)
treeb61a0ad108f0fb90500b264561af1f92f29ef148 /kernel/sched/deadline.c
parent9cff8adeaa34b5d2802f03f89803da57856b3b72 (diff)
sched/dl: Do update_rq_clock() in yield_task_dl()
update_curr_dl() needs actual rq clock. Signed-off-by: Kirill Tkhai <ktkhai@parallels.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/1423040972.18770.10.camel@tkhai Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/deadline.c')
-rw-r--r--kernel/sched/deadline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 9908c950d776..3fa8fa6d9403 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -912,6 +912,7 @@ static void yield_task_dl(struct rq *rq)
rq->curr->dl.dl_yielded = 1;
p->dl.runtime = 0;
}
+ update_rq_clock(rq);
update_curr_dl(rq);
}