cpumask: replace cpumask_next_* with cpumask_first_* where appropriate
authorYury Norov <yury.norov@gmail.com>
Sat, 14 Aug 2021 21:17:05 +0000 (14:17 -0700)
committerYury Norov <yury.norov@gmail.com>
Sat, 15 Jan 2022 16:47:31 +0000 (08:47 -0800)
commit9b51d9d866482a703646fd4c07e433c3d9d88efd
tree848b62fea613d49466544ae6e441ddac0478ff34
parent4ade0818cf048bb166e875ed4f8b456e6c2c7b3c
cpumask: replace cpumask_next_* with cpumask_first_* where appropriate

cpumask_first() is a more effective analogue of 'next' version if n == -1
(which means start == 0). This patch replaces 'next' with 'first' where
things look trivial.

There's no cpumask_first_zero() function, so create it.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
block/blk-mq.c
drivers/net/virtio_net.c
drivers/soc/fsl/qbman/bman_portal.c
drivers/soc/fsl/qbman/qman_portal.c
include/linux/cpumask.h
kernel/time/clocksource.c