]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: export lockup_detector_reconfigure
authorLaurent Dufour <ldufour@linux.ibm.com>
Wed, 13 Jul 2022 15:47:27 +0000 (17:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:37 +0000 (11:18 +0200)
commite97e28c632474990d6b3ed50aed3ec5500fa8991
tree380390573bfd20ad69de4c253dc17a25fc2c8dbe
parent09e9367d092a4348e4497cbb9aee5e691403de81
watchdog: export lockup_detector_reconfigure

[ Upstream commit 2d2c738a3b13317f13fc1a835f6b4492f1663a9c ]

In some circumstances it may be interesting to reconfigure the watchdog
from inside the kernel.

On PowerPC, this may helpful before and after a LPAR migration (LPM) is
initiated, because it implies some latencies, watchdog, and especially NMI
watchdog is expected to be triggered during this operation. Reconfiguring
the watchdog with a factor, would prevent it to happen too frequently
during LPM.

Rename lockup_detector_reconfigure() as __lockup_detector_reconfigure() and
create a new function lockup_detector_reconfigure() calling
__lockup_detector_reconfigure() under the protection of watchdog_mutex.

Signed-off-by: Laurent Dufour <ldufour@linux.ibm.com>
[mpe: Squash in build fix from Laurent, reported by Sachin]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220713154729.80789-3-ldufour@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/nmi.h
kernel/watchdog.c