mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
watchdog: watchdog_dev: Let the driver update the timeout field on set_timeout success
When a set_timeout operation succeeds this does not necessarily mean that the exact timeout requested has been achieved, because the watchdog does not necessarily have a 1 second resolution. So rather then have the core set the timeout member of the watchdog_device struct to the exact requested value, instead the driver should set it to the actually achieved timeout value. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
a5132cafc0
commit
b10f7c12e0
2 changed files with 4 additions and 4 deletions
|
|
@ -226,7 +226,6 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd,
|
|||
err = wdd->ops->set_timeout(wdd, val);
|
||||
if (err < 0)
|
||||
return err;
|
||||
wdd->timeout = val;
|
||||
/* If the watchdog is active then we send a keepalive ping
|
||||
* to make sure that the watchdog keep's running (and if
|
||||
* possible that it takes the new timeout) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue