]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf88f155cf5d59140c026a9facf74d40725578aa
treeeb98d534072dc163e756c8ab43a4c1d945cffc94
parentf39b454bd5159669b91d0cb9915fb25cb5ca0e73
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