Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81749
b: refs/heads/master
c: ef9884e
h: refs/heads/master
i:
  81747: 0b7f66c
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jan 31, 2008
1 parent 12204ba commit 7694d26
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 296825cbe14d4c95ee9c41ca5824f7487bfb4d9d
refs/heads/master: ef9884e6f29bbe1075204f962a00f7533bf7e8f3
6 changes: 5 additions & 1 deletion trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,11 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
}

gran = sysctl_sched_wakeup_granularity;
if (unlikely(se->load.weight != NICE_0_LOAD))
/*
* More easily preempt - nice tasks, while not making
* it harder for + nice tasks.
*/
if (unlikely(se->load.weight > NICE_0_LOAD))
gran = calc_delta_fair(gran, &se->load);

if (pse->vruntime + gran < se->vruntime)
Expand Down

0 comments on commit 7694d26

Please sign in to comment.