Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98810
b: refs/heads/master
c: b1e3873
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds authored and Ingo Molnar committed Jul 10, 2008
1 parent c836fbf commit 8d5c66f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: dc7fab8b3bb388c57c6c4a43ba68c8a32ca25204
refs/heads/master: b1e387348a2a70954312b102d0589c3e2ca3dba1
11 changes: 5 additions & 6 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -5621,13 +5621,11 @@ static int __migrate_task(struct task_struct *p, int src_cpu, int dest_cpu)

double_rq_lock(rq_src, rq_dest);
/* Already moved. */
if (task_cpu(p) != src_cpu) {
ret = 1;
goto out;
}
if (task_cpu(p) != src_cpu)
goto done;
/* Affinity changed (again). */
if (!cpu_isset(dest_cpu, p->cpus_allowed))
goto out;
goto fail;

on_rq = p->se.on_rq;
if (on_rq)
Expand All @@ -5638,8 +5636,9 @@ static int __migrate_task(struct task_struct *p, int src_cpu, int dest_cpu)
activate_task(rq_dest, p, 0);
check_preempt_curr(rq_dest, p);
}
done:
ret = 1;
out:
fail:
double_rq_unlock(rq_src, rq_dest);
return ret;
}
Expand Down

0 comments on commit 8d5c66f

Please sign in to comment.