aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/helpers
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2025-01-28 11:46:40 -0500
committerYury Norov <yury.norov@gmail.com>2025-02-24 16:37:23 -0500
commitaee1bf155db71c4ff04212da90207a3dba9a8829 (patch)
treed3e68bf5e98b83136f18c94cc38b2577a8375adc /rust/helpers
parentscsi: lpfc: switch lpfc_irq_rebalance() to using cpumask_next_wrap() (diff)
downloadwireguard-linux-aee1bf155db71c4ff04212da90207a3dba9a8829.tar.xz
wireguard-linux-aee1bf155db71c4ff04212da90207a3dba9a8829.zip
scsi: lpfc: rework lpfc_next_{online,present}_cpu()
lpfc_next_online_cpu() opencodes cpumask_next_and_wrap() by using a for-loop. Use it and make the lpfc_next_online_cpu() a plain one-liner. While there, rework lpfc_next_present_cpu() similarly. Notice that cpumask_next() followed by cpumask_first() in the worst case of an empty mask may traverse the mask twice. Cpumask_next_wrap() takes care of that correctly. Reviewed-by: Justin Tee <justin.tee@broadcom.com> Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions