diff options
author | Mike Galbraith <efault@gmx.de> | 2009-09-11 12:01:17 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-15 16:01:02 +0200 |
commit | 3cb63d527f76e25dbccce4f577f21aecfa2abac7 (patch) | |
tree | 2a4e940aa108b8c1f9a524dbf3294db88c5f9098 /kernel/sched_fair.c | |
parent | sched: Split WAKEUP_OVERLAP (diff) | |
download | linux-3cb63d527f76e25dbccce4f577f21aecfa2abac7.tar.xz linux-3cb63d527f76e25dbccce4f577f21aecfa2abac7.zip |
sched: Complete buddy switches
Add a NEXT_BUDDY feature flag to aid in debugging.
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index cea5b82242ee..4f6356e70ad6 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -1501,7 +1501,8 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync) */ if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle)) set_last_buddy(se); - set_next_buddy(pse); + if (sched_feat(NEXT_BUDDY)) + set_next_buddy(pse); /* * We can come here with TIF_NEED_RESCHED already set from new task |