Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277382
b: refs/heads/master
c: 76854c7
h: refs/heads/master
v: v3
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Dec 6, 2011
1 parent f30bdbd commit 844a110
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 77e81365e0b7d7479fc444a21cea0cd4def70b45
refs/heads/master: 76854c7e8f3f4172fef091e78d88b3b751463ac6
3 changes: 3 additions & 0 deletions trunk/kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -2744,6 +2744,9 @@ select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flags)
int want_sd = 1;
int sync = wake_flags & WF_SYNC;

if (p->rt.nr_cpus_allowed == 1)
return prev_cpu;

if (sd_flag & SD_BALANCE_WAKE) {
if (cpumask_test_cpu(cpu, tsk_cpus_allowed(p)))
want_affine = 1;
Expand Down
3 changes: 3 additions & 0 deletions trunk/kernel/sched/rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,9 @@ select_task_rq_rt(struct task_struct *p, int sd_flag, int flags)

cpu = task_cpu(p);

if (p->rt.nr_cpus_allowed == 1)
goto out;

/* For anything but wake ups, just return the task_cpu */
if (sd_flag != SD_BALANCE_WAKE && sd_flag != SD_BALANCE_FORK)
goto out;
Expand Down

0 comments on commit 844a110

Please sign in to comment.