powerpc/watchdog: don't update the watchdog timestamp if a lockup is detected
authorNicholas Piggin <npiggin@gmail.com>
Sat, 5 May 2018 07:25:59 +0000 (17:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 May 2018 13:25:11 +0000 (23:25 +1000)
commit5a951c4e7e8df5d6df52bace1b4ff327885584d6
treeeb98d534072dc163e756c8ab43a4c1d945cffc94
parent282498d65fb4740c2e9212a79c6888887d0be6cf
powerpc/watchdog: don't update the watchdog timestamp if a lockup is detected

The watchdog heartbeat timestamp is updated when the local heartbeat
timer fires (or touch_nmi_watchdog() is called).

This is an interesting data point, so don't overwrite it when the
soft-NMI interrupt detects a hard lockup. That code came from a pre-
merge version to prevent hard lockup messages flood, but that's taken
care of with the stuck CPU logic now, so there is no reason to
update the heartbeat timestamp here.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/watchdog.c