]> git.baikalelectronics.ru Git - uboot.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)
commit01a7524aac29272538357cff2c2f6e5255d31e06
treec5ec4449f869b91910dece575e935e6bcff40fbf
parentadc02b083f66e53b4335f6f6ff0d348ed974bf51
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