Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76139
b: refs/heads/master
c: 17b3279
h: refs/heads/master
i:
  76137: 24813c9
  76135: 998e08f
v: v3
  • Loading branch information
Gregory Haskins authored and Ingo Molnar committed Jan 25, 2008
1 parent 565143d commit 4a8f23b
Show file tree
Hide file tree
Showing 2 changed files with 3 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: e1f47d891c0f00769d6d40ac5740f943e998d089
refs/heads/master: 17b3279b48835eb522d842eae16f541da3729c8a
3 changes: 2 additions & 1 deletion trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ static int select_task_rq_rt(struct task_struct *p, int sync)
* that is just being woken and probably will have
* cold cache anyway.
*/
if (unlikely(rt_task(rq->curr))) {
if (unlikely(rt_task(rq->curr)) &&
(p->nr_cpus_allowed > 1)) {
int cpu = find_lowest_rq(p);

return (cpu == -1) ? task_cpu(p) : cpu;
Expand Down

0 comments on commit 4a8f23b

Please sign in to comment.