kernel/watchdog: introduce arch_touch_nmi_watchdog()
For architectures that define HAVE_NMI_WATCHDOG, instead of having them provide the complete touch_nmi_watchdog() function, just have them provide arch_touch_nmi_watchdog(). This gives the generic code more flexibility in implementing this function, and arch implementations don't miss out on touching the softlockup watchdog or other generic details. Link: http://lkml.kernel.org/r/20170616065715.18390-3-npiggin@gmail.com Signed-off-by:Nicholas Piggin <npiggin@gmail.com> Reviewed-by:
Don Zickus <dzickus@redhat.com> Reviewed-by:
Babu Moger <babu.moger@oracle.com> Tested-by: Babu Moger <babu.moger@oracle.com> [sparc] Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/blackfin/include/asm/nmi.h 2 additions, 0 deletionsarch/blackfin/include/asm/nmi.h
- arch/blackfin/kernel/nmi.c 1 addition, 1 deletionarch/blackfin/kernel/nmi.c
- arch/mn10300/include/asm/nmi.h 2 additions, 0 deletionsarch/mn10300/include/asm/nmi.h
- arch/mn10300/kernel/mn10300-watchdog-low.S 4 additions, 4 deletionsarch/mn10300/kernel/mn10300-watchdog-low.S
- arch/mn10300/kernel/mn10300-watchdog.c 1 addition, 1 deletionarch/mn10300/kernel/mn10300-watchdog.c
- arch/sparc/include/asm/nmi.h 1 addition, 0 deletionsarch/sparc/include/asm/nmi.h
- arch/sparc/kernel/nmi.c 2 additions, 4 deletionsarch/sparc/kernel/nmi.c
- include/linux/nmi.h 16 additions, 11 deletionsinclude/linux/nmi.h
- kernel/watchdog_hld.c 2 additions, 3 deletionskernel/watchdog_hld.c
Please register or sign in to comment