From: Yury Norov Date: Tue, 28 Jan 2025 16:46:38 +0000 (-0500) Subject: s390: switch stop_machine_yield() to using cpumask_next_wrap() X-Git-Tag: v6.15-rc1~222^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cad4092858767cb54b5ec9be5b3fc39756abd46;p=thirdparty%2Flinux.git 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 --- diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c index 42ca61909030a..745649ad9779b 100644 --- a/arch/s390/kernel/processor.c +++ b/arch/s390/kernel/processor.c @@ -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))