diff options
author | Mike Galbraith <mgalbraith@suse.de> | 2011-11-22 14:21:26 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-06 08:06:24 (GMT) |
commit | 916671c08b7808aebec87cc56c85788e665b3c6b (patch) | |
tree | b3cd42d8fc5ba64f3ee0bff332278758c656141c /kernel/sched/core.c | |
parent | 76854c7e8f3f4172fef091e78d88b3b751463ac6 (diff) | |
download | linux-916671c08b7808aebec87cc56c85788e665b3c6b.tar.xz |
sched: Set skip_clock_update in yield_task_fair()
This is another case where we are on our way to schedule(),
so can save a useless clock update and resulting microscopic
vruntime update.
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1321971686.6855.18.camel@marge.simson.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index ca8fd44..db313c3 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4547,6 +4547,13 @@ again: */ if (preempt && rq != p_rq) resched_task(p_rq->curr); + } else { + /* + * We might have set it in task_yield_fair(), but are + * not going to schedule(), so don't want to skip + * the next update. + */ + rq->skip_clock_update = 0; } out: |