diff options
author | Yong Zhang <yong.zhang0@gmail.com> | 2011-07-29 04:20:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-08-14 06:00:41 -0400 |
commit | 2c2efaed9bc973e3aeab1385c618017b56c8f6d7 (patch) | |
tree | 2a401b92c58c8aa8a40dafc513fb6be42f92c80a /kernel/sched_fair.c | |
parent | e2b245f89ee3f5b03fb42d843a79a58cf4773181 (diff) |
sched: Kill WAKEUP_PREEMPT
Remove the WAKEUP_PREEMPT feature, disabling it doesn't make any sense
and its outlived its use by a long long while.
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Acked-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110729082033.GB12106@zhy
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index bc8ee9993814..241fc86bc613 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1095,9 +1095,6 @@ check_preempt_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr) | |||
1095 | * narrow margin doesn't have to wait for a full slice. | 1095 | * narrow margin doesn't have to wait for a full slice. |
1096 | * This also mitigates buddy induced latencies under load. | 1096 | * This also mitigates buddy induced latencies under load. |
1097 | */ | 1097 | */ |
1098 | if (!sched_feat(WAKEUP_PREEMPT)) | ||
1099 | return; | ||
1100 | |||
1101 | if (delta_exec < sysctl_sched_min_granularity) | 1098 | if (delta_exec < sysctl_sched_min_granularity) |
1102 | return; | 1099 | return; |
1103 | 1100 | ||
@@ -1233,7 +1230,7 @@ entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr, int queued) | |||
1233 | return; | 1230 | return; |
1234 | #endif | 1231 | #endif |
1235 | 1232 | ||
1236 | if (cfs_rq->nr_running > 1 || !sched_feat(WAKEUP_PREEMPT)) | 1233 | if (cfs_rq->nr_running > 1) |
1237 | check_preempt_tick(cfs_rq, curr); | 1234 | check_preempt_tick(cfs_rq, curr); |
1238 | } | 1235 | } |
1239 | 1236 | ||
@@ -1899,10 +1896,6 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int wake_ | |||
1899 | if (unlikely(p->policy != SCHED_NORMAL)) | 1896 | if (unlikely(p->policy != SCHED_NORMAL)) |
1900 | return; | 1897 | return; |
1901 | 1898 | ||
1902 | |||
1903 | if (!sched_feat(WAKEUP_PREEMPT)) | ||
1904 | return; | ||
1905 | |||
1906 | find_matching_se(&se, &pse); | 1899 | find_matching_se(&se, &pse); |
1907 | update_curr(cfs_rq_of(se)); | 1900 | update_curr(cfs_rq_of(se)); |
1908 | BUG_ON(!pse); | 1901 | BUG_ON(!pse); |