diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-09-11 05:59:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-15 10:01:02 -0400 |
commit | e6b1b2c9c0461c4e0971ed905ce3cda6512ee82a (patch) | |
tree | 6462056dec7dcf59139f38d399f2cb27b07bd609 /kernel/sched_fair.c | |
parent | b78bb868c54bebbf8d8786a3f8320700d6d2b864 (diff) |
sched: Split WAKEUP_OVERLAP
It consists of two conditions, split them out in separate toggles
so we can test them independently.
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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index aa7f84121016..cea5b82242ee 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1526,9 +1526,10 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync) | |||
1526 | if (!sched_feat(WAKEUP_PREEMPT)) | 1526 | if (!sched_feat(WAKEUP_PREEMPT)) |
1527 | return; | 1527 | return; |
1528 | 1528 | ||
1529 | if (sched_feat(WAKEUP_OVERLAP) && (sync || | 1529 | if ((sched_feat(WAKEUP_SYNC) && sync) || |
1530 | (se->avg_overlap < sysctl_sched_migration_cost && | 1530 | (sched_feat(WAKEUP_OVERLAP) && |
1531 | pse->avg_overlap < sysctl_sched_migration_cost))) { | 1531 | (se->avg_overlap < sysctl_sched_migration_cost && |
1532 | pse->avg_overlap < sysctl_sched_migration_cost))) { | ||
1532 | resched_task(curr); | 1533 | resched_task(curr); |
1533 | return; | 1534 | return; |
1534 | } | 1535 | } |