watchdog: Make watchdog core configurable as module

Under some circumstances it may be desirable to configure
the watchdog core as module. Enable it.

As part of this change, mark pretimeout governors as depending
on the watchdog core. This is necessary to prevent governors
from being built into the kernel if the watchdog core is built
as module.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
Guenter Roeck
2019-04-29 12:28:29 -07:00
committed by Wim Van Sebroeck
parent 471ce88b84
commit 0d3e156399

View File

@ -30,7 +30,7 @@ menuconfig WATCHDOG
if WATCHDOG if WATCHDOG
config WATCHDOG_CORE config WATCHDOG_CORE
bool "WatchDog Timer Driver Core" tristate "WatchDog Timer Driver Core"
---help--- ---help---
Say Y here if you want to use the new watchdog timer driver core. Say Y here if you want to use the new watchdog timer driver core.
This driver provides a framework for all watchdog timer drivers This driver provides a framework for all watchdog timer drivers
@ -75,6 +75,7 @@ if WATCHDOG_PRETIMEOUT_GOV
config WATCHDOG_PRETIMEOUT_GOV_NOOP config WATCHDOG_PRETIMEOUT_GOV_NOOP
tristate "Noop watchdog pretimeout governor" tristate "Noop watchdog pretimeout governor"
depends on WATCHDOG_CORE
default WATCHDOG_CORE default WATCHDOG_CORE
help help
Noop watchdog pretimeout governor, only an informational Noop watchdog pretimeout governor, only an informational
@ -82,6 +83,7 @@ config WATCHDOG_PRETIMEOUT_GOV_NOOP
config WATCHDOG_PRETIMEOUT_GOV_PANIC config WATCHDOG_PRETIMEOUT_GOV_PANIC
tristate "Panic watchdog pretimeout governor" tristate "Panic watchdog pretimeout governor"
depends on WATCHDOG_CORE
default WATCHDOG_CORE default WATCHDOG_CORE
help help
Panic watchdog pretimeout governor, on watchdog pretimeout Panic watchdog pretimeout governor, on watchdog pretimeout