diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-29 15:28:31 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2019-05-05 15:10:36 -0400 |
commit | 345f16251063bcef5828f17fe90aa7f7a5019aab (patch) | |
tree | 91e728e9db1eecc49dce4e4465b739c494511b2e | |
parent | ec24292925384836763618b90f273c456dd3e8fe (diff) |
watchdog: Improve Kconfig entry ordering and dependencies
HPWDT_NMI_DECODING depends on HP_WATCHDOG and should be next to it.
This helps menuconfig identify HPWDT_NMI_DECODING as depending on
HP_WATCHDOG.
BCM_KONA_WDT_DEBUG depends on BCM_KONA_WDT which depends on COMPILE_TEST.
Enabling BCM_KONA_WDT_DEBUG without BCM_KONA_WDT does not make sense,
so drop the COMPILE_TEST dependency from it. This also improves
menuconfig, which now properly associates BCM_KONA_WDT_DEBUG with
BCM_KONA_WDT.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
-rw-r--r-- | drivers/watchdog/Kconfig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index e5b30c4947d7..f457992487ea 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig | |||
@@ -1261,6 +1261,15 @@ config HP_WATCHDOG | |||
1261 | To compile this driver as a module, choose M here: the module will be | 1261 | To compile this driver as a module, choose M here: the module will be |
1262 | called hpwdt. | 1262 | called hpwdt. |
1263 | 1263 | ||
1264 | config HPWDT_NMI_DECODING | ||
1265 | bool "NMI support for the HP ProLiant iLO2+ Hardware Watchdog Timer" | ||
1266 | depends on HP_WATCHDOG | ||
1267 | default y | ||
1268 | help | ||
1269 | Enables the NMI handler for the watchdog pretimeout NMI and the iLO | ||
1270 | "Generate NMI to System" virtual button. When an NMI is claimed | ||
1271 | by the driver, panic is called. | ||
1272 | |||
1264 | config KEMPLD_WDT | 1273 | config KEMPLD_WDT |
1265 | tristate "Kontron COM Watchdog Timer" | 1274 | tristate "Kontron COM Watchdog Timer" |
1266 | depends on MFD_KEMPLD | 1275 | depends on MFD_KEMPLD |
@@ -1272,15 +1281,6 @@ config KEMPLD_WDT | |||
1272 | This driver can also be built as a module. If so, the module will be | 1281 | This driver can also be built as a module. If so, the module will be |
1273 | called kempld_wdt. | 1282 | called kempld_wdt. |
1274 | 1283 | ||
1275 | config HPWDT_NMI_DECODING | ||
1276 | bool "NMI support for the HP ProLiant iLO2+ Hardware Watchdog Timer" | ||
1277 | depends on HP_WATCHDOG | ||
1278 | default y | ||
1279 | help | ||
1280 | Enables the NMI handler for the watchdog pretimeout NMI and the iLO | ||
1281 | "Generate NMI to System" virtual button. When an NMI is claimed | ||
1282 | by the driver, panic is called. | ||
1283 | |||
1284 | config SC1200_WDT | 1284 | config SC1200_WDT |
1285 | tristate "National Semiconductor PC87307/PC97307 (ala SC1200) Watchdog" | 1285 | tristate "National Semiconductor PC87307/PC97307 (ala SC1200) Watchdog" |
1286 | depends on X86 | 1286 | depends on X86 |
@@ -1729,7 +1729,7 @@ config BCM_KONA_WDT | |||
1729 | 1729 | ||
1730 | config BCM_KONA_WDT_DEBUG | 1730 | config BCM_KONA_WDT_DEBUG |
1731 | bool "DEBUGFS support for BCM Kona Watchdog" | 1731 | bool "DEBUGFS support for BCM Kona Watchdog" |
1732 | depends on BCM_KONA_WDT || COMPILE_TEST | 1732 | depends on BCM_KONA_WDT |
1733 | help | 1733 | help |
1734 | If enabled, adds /sys/kernel/debug/bcm_kona_wdt/info which provides | 1734 | If enabled, adds /sys/kernel/debug/bcm_kona_wdt/info which provides |
1735 | access to the driver's internal data structures as well as watchdog | 1735 | access to the driver's internal data structures as well as watchdog |