Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73404
b: refs/heads/master
c: 8bc6767
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Nov 9, 2007
1 parent 05e05b2 commit fad20d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 3e3e13f399ac8060a20d14d210a28dc02dda372e
refs/heads/master: 8bc6767acb3236e0345e99cf198168e60e7ae456
6 changes: 2 additions & 4 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,10 +863,8 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
if (unlikely(se->load.weight != NICE_0_LOAD))
gran = calc_delta_fair(gran, &se->load);

if (delta > gran) {
if (p->prio < curr->prio)
resched_task(curr);
}
if (delta > gran)
resched_task(curr);
}
}

Expand Down

0 comments on commit fad20d4

Please sign in to comment.