mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
scsi: lpfc: switch lpfc_irq_rebalance() to using cpumask_next_wrap()
Calling cpumask_next_wrap_old() with starting CPU equal to wrapping CPU is the same as request to find next CPU, wrapping around if needed. cpumask_next_wrap() is the proper replacement for that. Reviewed-by: Justin Tee <justin.tee@broadcom.com> Signed-off-by: Yury Norov <yury.norov@gmail.com>
This commit is contained in:
parent
0cad409285
commit
6fef7ed158
|
|
@ -12873,7 +12873,7 @@ lpfc_irq_rebalance(struct lpfc_hba *phba, unsigned int cpu, bool offline)
|
|||
|
||||
if (offline) {
|
||||
/* Find next online CPU on original mask */
|
||||
cpu_next = cpumask_next_wrap_old(cpu, orig_mask, cpu, true);
|
||||
cpu_next = cpumask_next_wrap(cpu, orig_mask);
|
||||
cpu_select = lpfc_next_online_cpu(orig_mask, cpu_next);
|
||||
|
||||
/* Found a valid CPU */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user