Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76144
b: refs/heads/master
c: 4df64c0
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jan 25, 2008
1 parent d555d49 commit 2d02b50
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 79064fbf75796c4c6a53e40729dbe52f789a91fd
refs/heads/master: 4df64c0bfb7e0e260d10ebc005f7d0ba1308eed7
9 changes: 5 additions & 4 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,11 @@ static int find_lowest_rq(struct task_struct *task)
}

/* Will lock the rq it finds */
static struct rq *find_lock_lowest_rq(struct task_struct *task,
struct rq *rq)
static struct rq *find_lock_lowest_rq(struct task_struct *task, struct rq *rq)
{
struct rq *lowest_rq = NULL;
int cpu;
int tries;
int cpu;

for (tries = 0; tries < RT_MAX_TRIES; tries++) {
cpu = find_lowest_rq(task);
Expand All @@ -462,9 +461,11 @@ static struct rq *find_lock_lowest_rq(struct task_struct *task,
* Also make sure that it wasn't scheduled on its rq.
*/
if (unlikely(task_rq(task) != rq ||
!cpu_isset(lowest_rq->cpu, task->cpus_allowed) ||
!cpu_isset(lowest_rq->cpu,
task->cpus_allowed) ||
task_running(rq, task) ||
!task->se.on_rq)) {

spin_unlock(&lowest_rq->lock);
lowest_rq = NULL;
break;
Expand Down

0 comments on commit 2d02b50

Please sign in to comment.