diff options
author | Stefan Roese <sr@denx.de> | 2022-09-02 14:10:46 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-09-18 10:26:33 +0200 |
commit | 29caf9305b6fafe8f6d6b18fa1f825dff8686e61 (patch) | |
tree | 6530f6a2373b7af6fb4fdceca823b21f7c79ed7f /lib/sha512.c | |
parent | 881d4108257a45ac890ef27c523783dbe401e462 (diff) | |
download | u-boot-29caf9305b6fafe8f6d6b18fa1f825dff8686e61.tar.gz u-boot-29caf9305b6fafe8f6d6b18fa1f825dff8686e61.tar.bz2 u-boot-29caf9305b6fafe8f6d6b18fa1f825dff8686e61.zip |
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]
Diffstat (limited to 'lib/sha512.c')
-rw-r--r-- | lib/sha512.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha512.c b/lib/sha512.c index a421f249ba..fbe8d5f5bf 100644 --- a/lib/sha512.c +++ b/lib/sha512.c @@ -309,7 +309,7 @@ void sha384_csum_wd(const unsigned char *input, unsigned int ilen, chunk = chunk_sz; sha384_update(&ctx, curr, chunk); curr += chunk; - WATCHDOG_RESET(); + schedule(); } #else sha384_update(&ctx, input, ilen); @@ -372,7 +372,7 @@ void sha512_csum_wd(const unsigned char *input, unsigned int ilen, chunk = chunk_sz; sha512_update(&ctx, curr, chunk); curr += chunk; - WATCHDOG_RESET(); + schedule(); } #else sha512_update(&ctx, input, ilen); |