Skip to contentSkip to conversation

sched/dl: Do update_rq_clock() in yield_task_dl()

PATCH In review Kirill Tkhai 3 participants 3 messages Feb 4, 2015 – Feb 18, 2015 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/dl: Do update_rq_clock() in yield_task_dl()

update_curr_dl() needs actual rq clock.

---
 kernel/sched/deadline.c |    1 +
 1 file changed, 1 insertion(+)
kernel/sched/deadline.c +1 -0
index e7b2722..f4dbedd 100644
@@ -898,6 +898,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);
 }
 
maintainer
#1 lore raw
Quoted 2 lines · Kirill Tkhai

update_curr_dl() needs actual rq clock.

It does indeed. Thanks

#2 lore raw

[tip:sched/core] sched/dl: Do update_rq_clock() in yield_task_dl( )

In reply to Kirill Tkhai
sched/dl: Do update_rq_clock() in yield_task_dl()
Commit-ID:  6f1607f1bdb4f9991a8123675a03c1764b2932fe
Gitweb:     http://git.kernel.org/tip/6f1607f1bdb4f9991a8123675a03c1764b2932fe
Author:     Kirill Tkhai <[email protected]>
AuthorDate: Wed, 4 Feb 2015 12:09:32 +0300
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 18 Feb 2015 16:17:12 +0100

sched/dl: Do update_rq_clock() in yield_task_dl()

update_curr_dl() needs actual rq clock.

---
 kernel/sched/deadline.c | 1 +
 1 file changed, 1 insertion(+)
kernel/sched/deadline.c +1 -0
index 9908c95..3fa8fa6 100644
@@ -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);
 }