Skip to content

Commit 0cad409

Browse files
committed
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: Yury Norov <[email protected]>
1 parent f954a2d commit 0cad409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/processor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void notrace stop_machine_yield(const struct cpumask *cpumask)
7272
this_cpu = smp_processor_id();
7373
if (__this_cpu_inc_return(cpu_relax_retry) >= spin_retry) {
7474
__this_cpu_write(cpu_relax_retry, 0);
75-
cpu = cpumask_next_wrap_old(this_cpu, cpumask, this_cpu, false);
75+
cpu = cpumask_next_wrap(this_cpu, cpumask);
7676
if (cpu >= nr_cpu_ids)
7777
return;
7878
if (arch_vcpu_is_preempted(cpu))

0 commit comments

Comments
 (0)