|
@@ -4521,11 +4521,8 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
|
|
|
if (p->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;
|
|
|
- new_cpu = prev_cpu;
|
|
|
- }
|
|
|
+ if (sd_flag & SD_BALANCE_WAKE)
|
|
|
+ want_affine = cpumask_test_cpu(cpu, tsk_cpus_allowed(p));
|
|
|
|
|
|
rcu_read_lock();
|
|
|
for_each_domain(cpu, tmp) {
|