aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:05 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:05 -0400
commit28a1f6fa2f7ecec7e5da28b03a24abbecbd2e864 (patch)
tree8129969f8a7ba69acf12f84cefcd1d633bd7ce7a
parent67e12eac328b276dca7e61640632ed996ff1a93a (diff)
sched: remove SCHED_FEAT_SKIP_INITIAL
remove SCHED_FEAT_SKIP_INITIAL - it was off by default and even when enabled it never made any real difference. Signed-off-by: Ingo Molnar <mingo@elte.hu> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/sched.c4
-rw-r--r--kernel/sched_fair.c7
2 files changed, 1 insertions, 10 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5594e65166fc..bf85b4b281c5 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -399,7 +399,6 @@ enum {
399 SCHED_FEAT_SLEEPER_AVG = 4, 399 SCHED_FEAT_SLEEPER_AVG = 4,
400 SCHED_FEAT_SLEEPER_LOAD_AVG = 8, 400 SCHED_FEAT_SLEEPER_LOAD_AVG = 8,
401 SCHED_FEAT_START_DEBIT = 16, 401 SCHED_FEAT_START_DEBIT = 16,
402 SCHED_FEAT_SKIP_INITIAL = 32,
403}; 402};
404 403
405const_debug unsigned int sysctl_sched_features = 404const_debug unsigned int sysctl_sched_features =
@@ -407,8 +406,7 @@ const_debug unsigned int sysctl_sched_features =
407 SCHED_FEAT_NEW_FAIR_SLEEPERS *1 | 406 SCHED_FEAT_NEW_FAIR_SLEEPERS *1 |
408 SCHED_FEAT_SLEEPER_AVG *0 | 407 SCHED_FEAT_SLEEPER_AVG *0 |
409 SCHED_FEAT_SLEEPER_LOAD_AVG *1 | 408 SCHED_FEAT_SLEEPER_LOAD_AVG *1 |
410 SCHED_FEAT_START_DEBIT *1 | 409 SCHED_FEAT_START_DEBIT *1;
411 SCHED_FEAT_SKIP_INITIAL *0;
412 410
413#define sched_feat(x) (sysctl_sched_features & SCHED_FEAT_##x) 411#define sched_feat(x) (sysctl_sched_features & SCHED_FEAT_##x)
414 412
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index cc447fbff51c..c8c6b0561391 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1064,13 +1064,6 @@ static void task_new_fair(struct rq *rq, struct task_struct *p)
1064 place_entity(cfs_rq, se, 1); 1064 place_entity(cfs_rq, se, 1);
1065 1065
1066 /* 1066 /*
1067 * The first wait is dominated by the child-runs-first logic,
1068 * so do not credit it with that waiting time yet:
1069 */
1070 if (sched_feat(SKIP_INITIAL))
1071 se->wait_start_fair = 0;
1072
1073 /*
1074 * The statistical average of wait_runtime is about 1067 * The statistical average of wait_runtime is about
1075 * -granularity/2, so initialize the task with that: 1068 * -granularity/2, so initialize the task with that:
1076 */ 1069 */