]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390: switch stop_machine_yield() to using cpumask_next_wrap()
authorYury Norov <yury.norov@gmail.com>
Tue, 28 Jan 2025 16:46:38 +0000 (11:46 -0500)
committerYury Norov <yury.norov@gmail.com>
Mon, 24 Feb 2025 21:37:23 +0000 (16:37 -0500)
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 <yury.norov@gmail.com>
arch/s390/kernel/processor.c

index 42ca61909030a32b69a4c1568b2aaf8b2b10cf53..745649ad9779bb69e630011193bc6cf17b19f2ca 100644 (file)
@@ -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))