mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]>
This commit is contained in:
parent
540aea3dbf
commit
bb292ac1c6
3 changed files with 18 additions and 0 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue