Skip to content

Commit 7a61069

Browse files
committed
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 <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Signed-off-by: Yury Norov <[email protected]>
1 parent aee1bf1 commit 7a61069

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pci/controller/pci-hyperv.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,8 +1757,7 @@ static int hv_compose_multi_msi_req_get_cpu(void)
17571757

17581758
spin_lock_irqsave(&multi_msi_cpu_lock, flags);
17591759

1760-
cpu_next = cpumask_next_wrap_old(cpu_next, cpu_online_mask, nr_cpu_ids,
1761-
false);
1760+
cpu_next = cpumask_next_wrap(cpu_next, cpu_online_mask);
17621761
cpu = cpu_next;
17631762

17641763
spin_unlock_irqrestore(&multi_msi_cpu_lock, flags);

0 commit comments

Comments
 (0)