cyclic: Use schedule() instead of WATCHDOG_RESET()
Globally replace all occurances of WATCHDOG_RESET() with schedule(), which handles the HW_WATCHDOG functionality and the cyclic infrastructure. Signed-off-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Tom Rini <trini@konsulko.com> [am335x_evm, mx6cuboxi, rpi_3,dra7xx_evm, pine64_plus, am65x_evm, j721e_evm]
This commit is contained in:
@@ -123,7 +123,7 @@ int altera_write_fn(const void *buf, size_t len, int flush, int cookie)
|
||||
|
||||
if (bytecount % len_40 == 0) {
|
||||
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
|
||||
WATCHDOG_RESET();
|
||||
schedule();
|
||||
#endif
|
||||
#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
|
||||
putc('.'); /* let them know we are alive */
|
||||
@@ -343,7 +343,7 @@ int xilinx_fastwr_config_fn(void *buf, size_t len, int flush, int cookie)
|
||||
}
|
||||
if (bytecount % len_40 == 0) {
|
||||
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
|
||||
WATCHDOG_RESET();
|
||||
schedule();
|
||||
#endif
|
||||
#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
|
||||
putc('.'); /* let them know we are alive */
|
||||
|
||||
@@ -423,7 +423,7 @@ static void __maybe_unused led_error_blink(u32 nb_blink)
|
||||
for (i = 0; i < 2 * nb_blink; i++) {
|
||||
led_set_state(led, LEDST_TOGGLE);
|
||||
mdelay(125);
|
||||
WATCHDOG_RESET();
|
||||
schedule();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -329,7 +329,7 @@ void board_init_f(ulong dummy)
|
||||
/* Initialize and reset WDT in SPL */
|
||||
#ifdef CONFIG_SPL_WATCHDOG
|
||||
hw_watchdog_init();
|
||||
WATCHDOG_RESET();
|
||||
schedule();
|
||||
#endif
|
||||
|
||||
/* load/boot image from boot device */
|
||||
|
||||
@@ -722,7 +722,7 @@ static int rx51_kp_getc(struct udevice *dev)
|
||||
{
|
||||
keybuf_head %= KEYBUF_SIZE;
|
||||
while (!rx51_kp_tstc(dev))
|
||||
WATCHDOG_RESET();
|
||||
schedule();
|
||||
return keybuf[keybuf_head++];
|
||||
}
|
||||
|
||||
|
||||
@@ -289,7 +289,7 @@ static void __maybe_unused led_error_blink(u32 nb_blink)
|
||||
for (i = 0; i < 2 * nb_blink; i++) {
|
||||
led_set_state(led, LEDST_TOGGLE);
|
||||
mdelay(125);
|
||||
WATCHDOG_RESET();
|
||||
schedule();
|
||||
}
|
||||
led_set_state(led, LEDST_ON);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user