]> Gentwo Git Trees - linux/.git/commit
PCI: hv: Switch hv_compose_multi_msi_req_get_cpu() to using cpumask_next_wrap()
authorYury Norov <yury.norov@gmail.com>
Tue, 28 Jan 2025 16:46:41 +0000 (11:46 -0500)
committerYury Norov <yury.norov@gmail.com>
Tue, 11 Feb 2025 03:01:12 +0000 (22:01 -0500)
commitbf9c57a4a0292290e8746872189cdfad483323ab
treeca1976cb5546f13c8401ccb89e0f047a09f7877d
parent93f332b9ef6ae8b1f9ab6df4fb496f2d8c4bfe5a
PCI: hv: Switch hv_compose_multi_msi_req_get_cpu() to using cpumask_next_wrap()

Calling cpumask_next_wrap_old() with starting CPU == nr_cpu_ids
is effectively the same as request to find first CPU, starting
from a given one and wrapping around if needed.

cpumask_next_wrap() is a proper replacement for that.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
drivers/pci/controller/pci-hyperv.c