linux/arch
Douglas Anderson 6426e8d1f2 watchdog/hardlockup: HAVE_NMI_WATCHDOG must implement watchdog_hardlockup_probe()
Right now there is one arch (sparc64) that selects HAVE_NMI_WATCHDOG
without selecting HAVE_HARDLOCKUP_DETECTOR_ARCH.  Because of that one
architecture, we have some special case code in the watchdog core to
handle the fact that watchdog_hardlockup_probe() isn't implemented.

Let's implement watchdog_hardlockup_probe() for sparc64 and get rid of the
special case.

As a side effect of doing this, code inspection tells us that we could fix
a minor bug where the system won't properly realize that NMI watchdogs are
disabled.  Specifically, on powerpc if CONFIG_PPC_WATCHDOG is turned off
the arch might still select CONFIG_HAVE_HARDLOCKUP_DETECTOR_ARCH which
selects CONFIG_HAVE_NMI_WATCHDOG.  Since CONFIG_PPC_WATCHDOG was off then
nothing will override the "weak" watchdog_hardlockup_probe() and we'll
fallback to looking at CONFIG_HAVE_NMI_WATCHDOG.

Link: https://lkml.kernel.org/r/20230526184139.2.Ic6ebbf307ca0efe91f08ce2c1eb4a037ba6b0700@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>
2023-06-19 16:25:26 -07:00
..
alpha syscalls: add sys_ni_posix_timers prototype 2023-06-09 17:44:25 -07:00
arc Locking changes in v6.4: 2023-05-05 12:56:55 -07:00
arm init: consolidate prototypes in linux/init.h 2023-06-09 17:44:16 -07:00
arm64 arm64: enable perf events based hard lockup detector 2023-06-09 17:44:22 -07:00
csky arch/csky patches for 6.4 2023-05-04 12:25:05 -07:00
hexagon Locking changes in v6.4: 2023-05-05 12:56:55 -07:00
ia64 Locking changes in v6.4: 2023-05-05 12:56:55 -07:00
loongarch Locking changes in v6.4: 2023-05-05 12:56:55 -07:00
m68k m68k: Move signal frame following exception on 68020/030 2023-05-22 13:51:20 +02:00
microblaze init: consolidate prototypes in linux/init.h 2023-06-09 17:44:16 -07:00
mips init: consolidate prototypes in linux/init.h 2023-06-09 17:44:16 -07:00
nios2 - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
openrisc Locking changes in v6.4: 2023-05-05 12:56:55 -07:00
parisc init: consolidate prototypes in linux/init.h 2023-06-09 17:44:16 -07:00
powerpc watchdog/hardlockup: rename some "NMI watchdog" constants/function 2023-06-09 17:44:20 -07:00
riscv init: consolidate prototypes in linux/init.h 2023-06-09 17:44:16 -07:00
s390 thread_info: move function declarations to linux/thread_info.h 2023-06-09 17:44:16 -07:00
sh thread_info: move function declarations to linux/thread_info.h 2023-06-09 17:44:16 -07:00
sparc watchdog/hardlockup: HAVE_NMI_WATCHDOG must implement watchdog_hardlockup_probe() 2023-06-19 16:25:26 -07:00
um um: harddog: fix modular build 2023-05-10 00:21:30 +02:00
x86 thread_info: move function declarations to linux/thread_info.h 2023-06-09 17:44:16 -07:00
xtensa Xtensa fixes for v6.4: 2023-05-23 15:21:34 -07:00
.gitignore
Kconfig watchdog/hardlockup: HAVE_NMI_WATCHDOG must implement watchdog_hardlockup_probe() 2023-06-19 16:25:26 -07:00