aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMike Galbraith <efault@gmx.de>2009-09-11 06:01:17 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-15 10:01:02 -0400
commit3cb63d527f76e25dbccce4f577f21aecfa2abac7 (patch)
tree2a4e940aa108b8c1f9a524dbf3294db88c5f9098 /kernel
parente6b1b2c9c0461c4e0971ed905ce3cda6512ee82a (diff)
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')
-rw-r--r--kernel/sched_fair.c3
-rw-r--r--kernel/sched_features.h1
2 files changed, 3 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)
1501 */ 1501 */
1502 if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle)) 1502 if (sched_feat(LAST_BUDDY) && likely(se->on_rq && curr != rq->idle))
1503 set_last_buddy(se); 1503 set_last_buddy(se);
1504 set_next_buddy(pse); 1504 if (sched_feat(NEXT_BUDDY))
1505 set_next_buddy(pse);
1505 1506
1506 /* 1507 /*
1507 * We can come here with TIF_NEED_RESCHED already set from new task 1508 * We can come here with TIF_NEED_RESCHED already set from new task
diff --git a/kernel/sched_features.h b/kernel/sched_features.h
index 07c8250b404c..6174c1233993 100644
--- a/kernel/sched_features.h
+++ b/kernel/sched_features.h
@@ -14,5 +14,6 @@ SCHED_FEAT(LB_WAKEUP_UPDATE, 1)
14SCHED_FEAT(ASYM_EFF_LOAD, 1) 14SCHED_FEAT(ASYM_EFF_LOAD, 1)
15SCHED_FEAT(WAKEUP_SYNC, 0) 15SCHED_FEAT(WAKEUP_SYNC, 0)
16SCHED_FEAT(WAKEUP_OVERLAP, 0) 16SCHED_FEAT(WAKEUP_OVERLAP, 0)
17SCHED_FEAT(NEXT_BUDDY, 1)
17SCHED_FEAT(LAST_BUDDY, 1) 18SCHED_FEAT(LAST_BUDDY, 1)
18SCHED_FEAT(OWNER_SPIN, 1) 19SCHED_FEAT(OWNER_SPIN, 1)