watchdog: Use depends instead of select for pretimeout governors
authorGuenter Roeck <linux@roeck-us.net>
Mon, 29 Apr 2019 19:28:27 +0000 (12:28 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:10:34 +0000 (21:10 +0200)
commitf627ac0e12cd2736e60b9f5782ecec1d97251f77
tree0d1142b79a47831ad6e8fbfc6a0593611ff7238a
parent0b468829c325026e0f2cec7f4e1b3ea2949f6d0d
watchdog: Use depends instead of select for pretimeout governors

Watchdog pretimeout governors were enabled from the default governor
selection using "select". As a result, the default governor was always
built into the kernel, even if no watchdog driver was loaded. By using
"depends on" instead of "select", we are in better control, and the
governors can all be built as modules. At the same time, set the default
configuration option for pretimeout governors to match WATCHDOG_CORE
(meaning all pretimeout governors are by default enabled if pretimeout
support is enabled).

The practical impact of this change is minimal. Previously, selecting
a default governor automatically enabled that governor. Now, a default
governor can only be selected if that governor has been enabled.
Consequently, the order of governor selection is now reversed: The
governor selection is now first, followed by default governor selection.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig