• Petr Mladek's avatar
    watchdog/sparc64: define HARDLOCKUP_DETECTOR_SPARC64 · 47f4cb43
    Petr Mladek authored
    The HAVE_ prefix means that the code could be enabled. Add another
    variable for HAVE_HARDLOCKUP_DETECTOR_SPARC64 without this prefix.
    It will be set when it should be built. It will make it compatible
    with the other hardlockup detectors.
    
    Before, it is far from obvious that the SPARC64 variant is actually used:
    
    $> make ARCH=sparc64 defconfig
    $> grep HARDLOCKUP_DETECTOR .config
    CONFIG_HAVE_HARDLOCKUP_DETECTOR_BUDDY=y
    CONFIG_HAVE_HARDLOCKUP_DETECTOR_SPARC64=y
    
    After, it is more clear:
    
    $> make ARCH=sparc64 defconfig
    $> grep HARDLOCKUP_DETECTOR .config
    CONFIG_HAVE_HARDLOCKUP_DETECTOR_BUDDY=y
    CONFIG_HAVE_HARDLOCKUP_DETECTOR_SPARC64=y
    CONFIG_HARDLOCKUP_DETECTOR_SPARC64=y
    
    Link: https://lkml.kernel.org/r/20230616150618.6073-6-pmladek@suse.comSigned-off-by: default avatarPetr Mladek <pmladek@suse.com>
    Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
    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: default avatarAndrew Morton <akpm@linux-foundation.org>
    47f4cb43
watchdog.c 27.1 KB