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>
Mon, 24 Feb 2025 21:37:23 +0000 (16:37 -0500)
commit7a610694fa642c89d2758f5b327e415cb0bf4acd
tree34569bdcbaef5205ac0d1c1380518f5aff85e1a3
parentaee1bf155db71c4ff04212da90207a3dba9a8829
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