aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/Kconfig
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>2016-10-07 08:39:55 -0400
committerWim Van Sebroeck <wim@iguana.be>2016-10-08 04:27:13 -0400
commitf77710c4cda01ad9c3672fb2f97bdea9a94da92a (patch)
tree95d9c0f16b6270d486f6b3873363799d46a45795 /drivers/watchdog/Kconfig
parentff84136cb6a4943f489ad037fe93f43be0573c23 (diff)
watchdog: pretimeout: add noop pretimeout governor
The change adds noop watchdog pretimeout governor, only an informational message is printed to the kernel log buffer when a watchdog triggers a pretimeout event. While introducing the first pretimeout governor the selected design assumes that the default pretimeout governor is selected by its name and it is always built-in, thus the default pretimeout governor can not be unregistered and the correspondent check can be removed from the watchdog_unregister_governor() function. Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/Kconfig')
-rw-r--r--drivers/watchdog/Kconfig28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 04d535ae497d..4aeb8f95beb4 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1838,4 +1838,32 @@ config WATCHDOG_PRETIMEOUT_GOV
1838 help 1838 help
1839 The option allows to select watchdog pretimeout governors. 1839 The option allows to select watchdog pretimeout governors.
1840 1840
1841if WATCHDOG_PRETIMEOUT_GOV
1842
1843choice
1844 prompt "Default Watchdog Pretimeout Governor"
1845 default WATCHDOG_PRETIMEOUT_DEFAULT_GOV_PANIC
1846 help
1847 This option selects a default watchdog pretimeout governor.
1848 The governor takes its action, if a watchdog is capable
1849 to report a pretimeout event.
1850
1851config WATCHDOG_PRETIMEOUT_DEFAULT_GOV_NOOP
1852 bool "noop"
1853 select WATCHDOG_PRETIMEOUT_GOV_NOOP
1854 help
1855 Use noop watchdog pretimeout governor by default. If noop
1856 governor is selected by a user, write a short message to
1857 the kernel log buffer and don't do any system changes.
1858
1859endchoice
1860
1861config WATCHDOG_PRETIMEOUT_GOV_NOOP
1862 tristate "Noop watchdog pretimeout governor"
1863 help
1864 Noop watchdog pretimeout governor, only an informational
1865 message is added to kernel log buffer.
1866
1867endif # WATCHDOG_PRETIMEOUT_GOV
1868
1841endif # WATCHDOG 1869endif # WATCHDOG