diff options
author | Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> | 2016-10-07 08:39:54 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2016-10-08 04:27:10 -0400 |
commit | ff84136cb6a4943f489ad037fe93f43be0573c23 (patch) | |
tree | bde99dc52bf4066e666681d280011d37d17d269a /drivers/watchdog/Kconfig | |
parent | fc113d54e9d7ef3296cdf2eff49c8ca0a3e5a482 (diff) |
watchdog: add watchdog pretimeout governor framework
The change adds a simple watchdog pretimeout framework infrastructure,
its purpose is to allow users to select a desired handling of watchdog
pretimeout events, which may be generated by some watchdog devices.
A user selects a default watchdog pretimeout governor during
compilation stage.
Watchdogs with WDIOF_PRETIMEOUT capability now have one more device
attribute in sysfs, pretimeout_governor attribute is intended to display
the selected watchdog pretimeout governor.
The framework has no impact at runtime on watchdog devices with no
WDIOF_PRETIMEOUT capability set.
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/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 1bffe006ca9a..04d535ae497d 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig | |||
@@ -1831,4 +1831,11 @@ config USBPCWATCHDOG | |||
1831 | 1831 | ||
1832 | Most people will say N. | 1832 | Most people will say N. |
1833 | 1833 | ||
1834 | comment "Watchdog Pretimeout Governors" | ||
1835 | |||
1836 | config WATCHDOG_PRETIMEOUT_GOV | ||
1837 | bool "Enable watchdog pretimeout governors" | ||
1838 | help | ||
1839 | The option allows to select watchdog pretimeout governors. | ||
1840 | |||
1834 | endif # WATCHDOG | 1841 | endif # WATCHDOG |