]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpumask: replace cpumask_next_* with cpumask_first_* where appropriate
authorYury Norov <yury.norov@gmail.com>
Mon, 23 Aug 2021 23:59:57 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:50 +0000 (09:34 +1000)
commit67d486cbe46e30cb5f285f19c3225c2efbc67c74
treeaef1e52685354a34c4969c120b9f36a60c80eba9
parent0803a22a559adfbb78289b297a88d34db64a173d
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.

Link: https://lkml.kernel.org/r/20210814211713.180533-10-yury.norov@gmail.com
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Alexander Lobakin <alobakin@pm.me>
Cc: Alexey Klimov <aklimov@redhat.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
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