Commit 0cad4092 authored by Yury Norov's avatar Yury Norov
Browse files

s390: switch stop_machine_yield() to using cpumask_next_wrap()



Calling cpumask_next_wrap_old() with starting CPU equal to wrapping CPU
effectively means the request to find next CPU, wrapping around if needed.

cpumask_next_wrap() is the proper replacement for that.

Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
parent f954a2d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ void notrace stop_machine_yield(const struct cpumask *cpumask)
	this_cpu = smp_processor_id();
	if (__this_cpu_inc_return(cpu_relax_retry) >= spin_retry) {
		__this_cpu_write(cpu_relax_retry, 0);
		cpu = cpumask_next_wrap_old(this_cpu, cpumask, this_cpu, false);
		cpu = cpumask_next_wrap(this_cpu, cpumask);
		if (cpu >= nr_cpu_ids)
			return;
		if (arch_vcpu_is_preempted(cpu))