OSDN Git Service

powerpc/watchdog: introduce a NMI watchdog's factor
authorLaurent Dufour <ldufour@linux.ibm.com>
Wed, 13 Jul 2022 15:47:28 +0000 (17:47 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2022 11:36:02 +0000 (21:36 +1000)
commitf5e74e836097d1004077390717d4bd95d4a2c27a
treedff98d181edd6257d55b7ab6203e87036996b4db
parent7c56a8733d0a2a4be2438a7512566e5ce552fccf
powerpc/watchdog: introduce a NMI watchdog's factor

Introduce a factor which would apply to the NMI watchdog timeout.

This factor is a percentage added to the watchdog_tresh value. The value is
set under the watchdog_mutex protection and lockup_detector_reconfigure()
is called to recompute wd_panic_timeout_tb.

Once the factor is set, it remains until it is set back to 0, which means
no impact.

Signed-off-by: Laurent Dufour <ldufour@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220713154729.80789-4-ldufour@linux.ibm.com
arch/powerpc/include/asm/nmi.h
arch/powerpc/kernel/watchdog.c