diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-26 01:21:10 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-02-25 01:00:23 +0300 |
commit | bb292ac1c6028344013309a309b44dc691581825 (patch) | |
tree | b4f36b0a8cf8a8c23026c1f12c2719bd96f53d55 /Documentation/watchdog/watchdog-kernel-api.txt | |
parent | 540aea3dbffc6a75d0b3b77db1cde36a065a6ab5 (diff) | |
download | linux-bb292ac1c6028344013309a309b44dc691581825.tar.xz |
watchdog: Introduce watchdog_stop_on_unregister helper
Many watchdog drivers explicitly stop the watchdog when unregistering it.
While it is unclear if this is actually needed (the whatdog should not be
running at that time if it can be stopped), introduce a helper to
explicitly stop the watchdog in the watchdog core when unregistering it.
This helps reducing driver code size while retaining functionality.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/watchdog/watchdog-kernel-api.txt')
-rw-r--r-- | Documentation/watchdog/watchdog-kernel-api.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.txt index ea277478982f..9b93953f69cf 100644 --- a/Documentation/watchdog/watchdog-kernel-api.txt +++ b/Documentation/watchdog/watchdog-kernel-api.txt @@ -280,6 +280,12 @@ To disable the watchdog on reboot, the user must call the following helper: static inline void watchdog_stop_on_reboot(struct watchdog_device *wdd); +To disable the watchdog when unregistering the watchdog, the user must call +the following helper. Note that this will only stop the watchdog if the +nowayout flag is not set. + +static inline void watchdog_stop_on_unregister(struct watchdog_device *wdd); + To change the priority of the restart handler the following helper should be used: |