]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: qcom: support pre-timeout when the bark irq is available
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Fri, 6 Sep 2019 20:54:10 +0000 (22:54 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 17 Sep 2019 06:59:14 +0000 (08:59 +0200)
commitf274e3648a74b9d74dd57eaa0a440082b368ced7
treed0cb52e46ffa5d7c60fc2a13511a3a7ce9ac538e
parentea89e9ce0b78e2336c807bfdf8d88aaa0ba914b1
watchdog: qcom: support pre-timeout when the bark irq is available

Use the bark interrupt as the pre-timeout notifier whenever this
interrupt is available.

By default, the pretimeout notification shall occur one second earlier
than the timeout.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190906205411.31666-2-jorge.ramirez-ortiz@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/qcom-wdt.c