]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:45:51 +0000 (11:45 +0200)
commitd1bac78a8c189cf57a7191726052e5c1ff6bb72d
tree3a203b060c7e402d4ab4e023b26cfb1a05e4ac6a
parent409135fdaca62a6ab868886df164b404d34a3b10
powerpc/watchdog: introduce a NMI watchdog's factor

[ Upstream commit f5e74e836097d1004077390717d4bd95d4a2c27a ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/nmi.h
arch/powerpc/kernel/watchdog.c