Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64656
b: refs/heads/master
c: 213c8af
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Aug 28, 2007
1 parent fe75b4b commit 43b8230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b77d69db9f4ba03b2ed17e383c2d73ca89f5ab14
refs/heads/master: 213c8af67f21c1dc0d50940b159d9521c95f3c89
4 changes: 3 additions & 1 deletion trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,10 @@ static void task_new_fair(struct rq *rq, struct task_struct *p)
* The statistical average of wait_runtime is about
* -granularity/2, so initialize the task with that:
*/
if (sysctl_sched_features & SCHED_FEAT_START_DEBIT)
if (sysctl_sched_features & SCHED_FEAT_START_DEBIT) {
p->se.wait_runtime = -(sched_granularity(cfs_rq) / 2);
schedstat_add(cfs_rq, wait_runtime, se->wait_runtime);
}

__enqueue_entity(cfs_rq, se);
}
Expand Down

0 comments on commit 43b8230

Please sign in to comment.