kernel/watchdog: introduce arch_touch_nmi_watchdog()
authorNicholas Piggin <[email protected]>
Wed, 12 Jul 2017 21:35:43 +0000 (14:35 -0700)
committerLinus Torvalds <[email protected]>
Wed, 12 Jul 2017 23:26:02 +0000 (16:26 -0700)
commitf2e0cff85ed111a3cf24d894c3fa11697dfae628
tree7a913f2440703f986fb570f4ceca9eae9d9c4f04
parent24bb44612c5f93a1dff1f7e71b7b7b109a988791
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/[email protected]
Signed-off-by: Nicholas Piggin <[email protected]>
Reviewed-by: Don Zickus <[email protected]>
Reviewed-by: Babu Moger <[email protected]>
Tested-by: Babu Moger <[email protected]> [sparc]
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Michael Ellerman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/blackfin/include/asm/nmi.h
arch/blackfin/kernel/nmi.c
arch/mn10300/include/asm/nmi.h
arch/mn10300/kernel/mn10300-watchdog-low.S
arch/mn10300/kernel/mn10300-watchdog.c
arch/sparc/include/asm/nmi.h
arch/sparc/kernel/nmi.c
include/linux/nmi.h
kernel/watchdog_hld.c