diff options
| author | Antonio Borneo <[email protected]> | 2025-05-20 08:59:52 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2025-06-01 11:16:29 +0000 |
| commit | cc0df5eba1b3a0eb54003d977a062ed39db09b0d (patch) | |
| tree | e06cc8a719ecd87b97fe2fa9509e454c4f1d5a5b /scripts/gcc-plugins/gcc-common.h | |
| parent | watchdog: iTCO: Drop driver-internal locking (diff) | |
| download | kernel-cc0df5eba1b3a0eb54003d977a062ed39db09b0d.tar.gz kernel-cc0df5eba1b3a0eb54003d977a062ed39db09b0d.zip | |
watchdog: arm_smc_wdt: get wdt status through SMCWD_GET_TIMELEFT
The optional SMCWD_GET_TIMELEFT command can be used to detect if
the watchdog has already been started.
See the implementation in OP-TEE secure OS [1].
At probe time, check if the watchdog is already started and then
set WDOG_HW_RUNNING in the watchdog status. This will cause the
watchdog framework to ping the watchdog until a userspace watchdog
daemon takes over the control.
Link: https://github.com/OP-TEE/optee_os/commit/a7f2d4bd8632 [1]
Signed-off-by: Antonio Borneo <[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 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
