mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
aee1bf155d
commit
7a610694fa
1 changed files with 1 additions and 2 deletions
|
|
@ -1757,8 +1757,7 @@ static int hv_compose_multi_msi_req_get_cpu(void)
|
|||
|
||||
spin_lock_irqsave(&multi_msi_cpu_lock, flags);
|
||||
|
||||
cpu_next = cpumask_next_wrap_old(cpu_next, cpu_online_mask, nr_cpu_ids,
|
||||
false);
|
||||
cpu_next = cpumask_next_wrap(cpu_next, cpu_online_mask);
|
||||
cpu = cpu_next;
|
||||
|
||||
spin_unlock_irqrestore(&multi_msi_cpu_lock, flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue