diff options
author | Michał Barnaś <mb@semihalf.com> | 2021-05-12 18:16:38 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-18 00:24:36 +0000 |
commit | e38a18d39b0a63428f57ff09a0e0c67ba6472e11 (patch) | |
tree | 9a30a9fd1a7a4dbfb64924257b504f199dfe537e /common/vboot_hash.c | |
parent | e98327249389b1a624bf3477b69e15e28d816418 (diff) | |
download | chrome-ec-e38a18d39b0a63428f57ff09a0e0c67ba6472e11.tar.gz |
zephyr: Remove CONFIG_VBOOT_HASH_RELOAD_WATCHDOG
This reverts commit 0e5fa530e2f1eba6e16188be65ac39974a151a17.
After commit 97e22d467 it is no longer needed to reload
watchdog during hash calculation.
BUG=b:182499153
BRANCH=none
TEST=Flash EC and verify that hash calculation is correctly
done without rebooting by watchdog. Reading watchdog value
shows that there is enough remaining time.
Change-Id: Ia7bb6452a6ac42cda88d8b5e1203876cd0465b31
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2897239
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/vboot_hash.c')
-rw-r--r-- | common/vboot_hash.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/common/vboot_hash.c b/common/vboot_hash.c index 1bb9298ced..04e3ae5f7f 100644 --- a/common/vboot_hash.c +++ b/common/vboot_hash.c @@ -127,28 +127,10 @@ static void hash_next_chunk(size_t size) static void vboot_hash_all_chunks(void) { -#ifdef CONFIG_VBOOT_HASH_RELOAD_WATCHDOG - uint64_t prev_watchdog = get_time().val; - - watchdog_reload(); -#endif - do { size_t size = MIN(CHUNK_SIZE, data_size - curr_pos); hash_next_chunk(size); curr_pos += size; - -#ifdef CONFIG_VBOOT_HASH_RELOAD_WATCHDOG - { - uint64_t cur_time = get_time().val; - - if ((cur_time - prev_watchdog) > - (CONFIG_WATCHDOG_PERIOD_MS * 1000 / 2)) { - watchdog_reload(); - prev_watchdog = cur_time; - } - } -#endif } while (curr_pos < data_size); hash = SHA256_final(&ctx); |