]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d980e13f320f016b3e9253a46fad31189eaaf04
treedff98d181edd6257d55b7ab6203e87036996b4db
parenta9991b7b2ebfdb6f9964413833779684bf23c7f2
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