watchdog/hardlockup: move SMP barriers from common code to buddy code
authorDouglas Anderson <dianders@chromium.org>
Sat, 27 May 2023 01:41:39 +0000 (18:41 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:25:28 +0000 (16:25 -0700)
commit28168eca3297d68faa8a9433ec93cb6acf06d2f4
treeb8cfaa33acf38fad9acb7870e40e5357d8b568f8
parent7ece48b7b4a22c1b2d59d7ab8ebcbacbfcaa7872
watchdog/hardlockup: move SMP barriers from common code to buddy code

It's been suggested that since the SMP barriers are only potentially
useful for the buddy hardlockup detector, not the perf hardlockup
detector, that the barriers belong in the buddy code.  Let's move them and
add clearer comments about why they're needed.

Link: https://lkml.kernel.org/r/20230526184139.9.I5ab0a0eeb0bd52fb23f901d298c72fa5c396e22b@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.c
kernel/watchdog_buddy.c