diff options
| author | Grzegorz Jaszczyk <[email protected]> | 2021-06-18 19:50:32 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2021-08-22 08:28:08 +0000 |
| commit | 60bcd91aafd22ef62cef9ae2037fa2e1d4da2fb3 (patch) | |
| tree | 918b076b7d7ab529aa5f26f101864a6505ad4802 /net/unix/af_unix.c | |
| parent | watchdog: Fix NULL pointer dereference when releasing cdev (diff) | |
| download | kernel-60bcd91aafd22ef62cef9ae2037fa2e1d4da2fb3.tar.gz kernel-60bcd91aafd22ef62cef9ae2037fa2e1d4da2fb3.zip | |
watchdog: introduce watchdog_dev_suspend/resume
The watchdog drivers often disable wdog clock during suspend and then
enable it again during resume. Nevertheless the ping worker is still
running and can issue low-level ping while the wdog clock is disabled
causing the system hang. To prevent such condition register pm notifier
in the watchdog core which will call watchdog_dev_suspend/resume and
actually cancel ping worker during suspend and restore it back, if
needed, during resume.
Signed-off-by: Grzegorz Jaszczyk <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
