]> git.dujemihanovic.xyz Git - u-boot.git/commit
cyclic: Integrate cyclic infrastructure into WATCHDOG_RESET
authorStefan Roese <sr@denx.de>
Fri, 2 Sep 2022 11:57:49 +0000 (13:57 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 13 Sep 2022 20:01:43 +0000 (16:01 -0400)
commit661cdaa79d961248bc8290f421d9cf3eb8defffd
treec5ec4449f869b91910dece575e935e6bcff40fbf
parentc2c6971888784cac01e625ef7f436d20e5fb23ba
cyclic: Integrate cyclic infrastructure into WATCHDOG_RESET

This patch integrates the main function responsible for calling all
registered cyclic functions cyclic_run() into the common WATCHDOG_RESET
macro. This guarantees that cyclic_run() is executed very often, which
is necessary for the cyclic functions to get scheduled and executed at
their configured periods.

If CONFIG_WATCHDOG is not enabled, only cyclic_run() without calling
watchdog_reset(). This guarantees that the cyclic functionality does not
rely on CONFIG_WATCHDOG being enabled.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
fs/cramfs/uncompress.c
include/watchdog.h