watchdog/buddy: don't copy the cpumask in watchdog_next_cpu()
authorDouglas Anderson <dianders@chromium.org>
Sat, 27 May 2023 01:41:37 +0000 (18:41 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:25:28 +0000 (16:25 -0700)
commit813efda23934edcad96343fc96727017378c3fe9
treeb914278b1c632f9e72ffe70ef6cd39b8a04d469d
parentd3b62ace0f097f1d863fb6c41df3c61503e4ec9e
watchdog/buddy: don't copy the cpumask in watchdog_next_cpu()

There's no reason to make a copy of the "watchdog_cpus" locally in
watchdog_next_cpu().  Making a copy wouldn't make things any more race
free and we're just reading the value so there's no need for a copy.

Link: https://lkml.kernel.org/r/20230526184139.7.If466f9a2b50884cbf6a1d8ad05525a2c17069407@changeid
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Suggested-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/watchdog_buddy.c