watchdog: gpio_wdt: Add option for early registration
[firefly-linux-kernel-4.4.55.git] / drivers / watchdog / Kconfig
index 4a52e899fe05833796b5b6744404069fb62e8c76..241fafde42cb54ceb2e50918e4a02e1c64f4f923 100644 (file)
@@ -1,3 +1,4 @@
+
 #
 # Watchdog device configuration
 #
@@ -113,6 +114,17 @@ config GPIO_WATCHDOG
          If you say yes here you get support for watchdog device
          controlled through GPIO-line.
 
+config GPIO_WATCHDOG_ARCH_INITCALL
+       bool "Register the watchdog as early as possible"
+       depends on GPIO_WATCHDOG=y
+       help
+         In some situations, the default initcall level (module_init)
+         in not early enough in the boot process to avoid the watchdog
+         to be triggered.
+         If you say yes here, the initcall level would be raised to
+         arch_initcall.
+         If in doubt, say N.
+
 config MENF21BMC_WATCHDOG
        tristate "MEN 14F021P00 BMC Watchdog"
        depends on MFD_MENF21BMC