Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69113
b: refs/heads/master
c: e62dd02
h: refs/heads/master
i:
  69111: 7dbb6b8
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Oct 15, 2007
1 parent 0fe6227 commit 99b6ef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: ace8b3d633f93da8535921bf3e3679db3c619578
refs/heads/master: e62dd02ed0af35631c6ca473e50758c9594773cf
5 changes: 2 additions & 3 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,8 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
vruntime += sched_vslice_add(cfs_rq, se);

if (!initial) {
struct task_struct *p = container_of(se, struct task_struct, se);

if (sched_feat(NEW_FAIR_SLEEPERS) && p->policy != SCHED_BATCH)
if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se) &&
task_of(se)->policy != SCHED_BATCH)
vruntime -= sysctl_sched_latency;

vruntime = max_t(s64, vruntime, se->vruntime);
Expand Down

0 comments on commit 99b6ef6

Please sign in to comment.