Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135673
b: refs/heads/master
c: 74ab8e4
h: refs/heads/master
i:
  135671: ac47e73
v: v3
  • Loading branch information
Gregory Haskins committed Dec 29, 2008
1 parent 721482c commit dbdca65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8728944efe23417e38bf22063f06d9d8ee21d59
refs/heads/master: 74ab8e4f6412c0b2d730fe5de28dc21de8b92c01
12 changes: 12 additions & 0 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,18 @@ static int pull_rt_task(struct rq *this_rq)
continue;

src_rq = cpu_rq(cpu);

/*
* Don't bother taking the src_rq->lock if the next highest
* task is known to be lower-priority than our current task.
* This may look racy, but if this value is about to go
* logically higher, the src_rq will push this task away.
* And if its going logically lower, we do not care
*/
if (src_rq->rt.highest_prio.next >=
this_rq->rt.highest_prio.curr)
continue;

/*
* We can potentially drop this_rq's lock in
* double_lock_balance, and another CPU could
Expand Down

0 comments on commit dbdca65

Please sign in to comment.