Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8edd075 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Ingo Molnar
Browse files

sched/fair: cleanup: Remove useless assignment in select_task_rq_fair()



new_cpu is reassigned below, so we do not need this here.

Signed-off-by: default avatarKirill Tkhai <ktkhai@parallels.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1410529276.3569.24.camel@tkhai


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent f139caf2
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -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)
	if (p->nr_cpus_allowed == 1)
		return prev_cpu;
		return prev_cpu;


	if (sd_flag & SD_BALANCE_WAKE) {
	if (sd_flag & SD_BALANCE_WAKE)
		if (cpumask_test_cpu(cpu, tsk_cpus_allowed(p)))
		want_affine = cpumask_test_cpu(cpu, tsk_cpus_allowed(p));
			want_affine = 1;
		new_cpu = prev_cpu;
	}


	rcu_read_lock();
	rcu_read_lock();
	for_each_domain(cpu, tmp) {
	for_each_domain(cpu, tmp) {