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, 2 Oct 2021 23:13:57 +0000 (16:13 -0700)
commit4e258d05437be76f9bbfa23af1970ddbc9a5fd39
tree5a965ccfb313ebed558718f7983f15bcec0925ed
parentfa9611dc9a301ff2d8ecdfe6a0a01547c70f56c2
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>
arch/powerpc/include/asm/cputhreads.h
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