* [PATCH] sched/dl: Do update_rq_clock() in yield_task_dl()
@ 2015-02-04 9:09 Kirill Tkhai
2015-02-04 11:16 ` Peter Zijlstra
2015-02-18 17:09 ` [tip:sched/core] sched/dl: Do update_rq_clock() in yield_task_dl( ) tip-bot for Kirill Tkhai
0 siblings, 2 replies; 3+ messages in thread
From: Kirill Tkhai @ 2015-02-04 9:09 UTC (permalink / raw)
To: linux-kernel; +Cc: Peter Zijlstra, Juri Lelli, Ingo Molnar, Kirill Tkhai
update_curr_dl() needs actual rq clock.
Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
---
kernel/sched/deadline.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index e7b2722..f4dbedd 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -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);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] sched/dl: Do update_rq_clock() in yield_task_dl()
2015-02-04 9:09 [PATCH] sched/dl: Do update_rq_clock() in yield_task_dl() Kirill Tkhai
@ 2015-02-04 11:16 ` Peter Zijlstra
2015-02-18 17:09 ` [tip:sched/core] sched/dl: Do update_rq_clock() in yield_task_dl( ) tip-bot for Kirill Tkhai
1 sibling, 0 replies; 3+ messages in thread
From: Peter Zijlstra @ 2015-02-04 11:16 UTC (permalink / raw)
To: Kirill Tkhai; +Cc: linux-kernel, Juri Lelli, Ingo Molnar, Kirill Tkhai
On Wed, Feb 04, 2015 at 12:09:32PM +0300, Kirill Tkhai wrote:
>
> update_curr_dl() needs actual rq clock.
It does indeed. Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:sched/core] sched/dl: Do update_rq_clock() in yield_task_dl( )
2015-02-04 9:09 [PATCH] sched/dl: Do update_rq_clock() in yield_task_dl() Kirill Tkhai
2015-02-04 11:16 ` Peter Zijlstra
@ 2015-02-18 17:09 ` tip-bot for Kirill Tkhai
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Kirill Tkhai @ 2015-02-18 17:09 UTC (permalink / raw)
To: linux-tip-commits
Cc: peterz, ktkhai, tglx, mingo, linux-kernel, torvalds, hpa
Commit-ID: 6f1607f1bdb4f9991a8123675a03c1764b2932fe
Gitweb: http://git.kernel.org/tip/6f1607f1bdb4f9991a8123675a03c1764b2932fe
Author: Kirill Tkhai <ktkhai@parallels.com>
AuthorDate: Wed, 4 Feb 2015 12:09:32 +0300
Committer: Ingo Molnar <mingo@kernel.org>
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.
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>
---
kernel/sched/deadline.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 9908c95..3fa8fa6 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);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-18 17:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04 9:09 [PATCH] sched/dl: Do update_rq_clock() in yield_task_dl() Kirill Tkhai
2015-02-04 11:16 ` Peter Zijlstra
2015-02-18 17:09 ` [tip:sched/core] sched/dl: Do update_rq_clock() in yield_task_dl( ) tip-bot for Kirill Tkhai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).