Re: [PATCH 5/7] watchdog/sparc64: Rename HAVE_NMI_WATCHDOG to HAVE_HARDLOCKUP_WATCHDOG_SPARC64

From: Doug Anderson
Date: Wed Jun 07 2023 - 19:37:13 EST


Hi,

On Wed, Jun 7, 2023 at 8:25 AM Petr Mladek <pmladek@xxxxxxxx> wrote:
>
> The configuration variable HAVE_NMI_WATCHDOG has a generic name but
> it is selected only for SPARC64.
>
> It should _not_ be used in general because it is not integrated with
> the other hardlockup detectors. Namely, it does not support the hardlockup
> specific command line parameters and systcl interface. Instead, it is
> enabled/disabled together with the softlockup detector by the global
> "watchdog" sysctl.
>
> Rename it to HAVE_HARDLOCKUP_WATCHDOG_SPARC64 to make the special
> behavior more clear.
>
> Also the variable is set only on sparc64. Move the definition
> from arch/Kconfig to arch/sparc/Kconfig.debug.
>
> Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
> ---
> arch/Kconfig | 12 ------------
> arch/sparc/Kconfig | 2 +-
> arch/sparc/Kconfig.debug | 12 ++++++++++++
> include/linux/nmi.h | 4 ++--
> kernel/watchdog.c | 2 +-
> lib/Kconfig.debug | 5 +----
> 6 files changed, 17 insertions(+), 20 deletions(-)

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>