Skip to content
Commit 87c692cb authored by Ruslan Bilovol's avatar Ruslan Bilovol Committed by Tom Rini
Browse files

watchdog: omap_wdt: improve watchdog reset path



Remove busy looping during watchdog reset.
Each polling of W_PEND_WTGR bit ("finish posted
write") after watchdog reset takes 120-140us
on BeagleBone Black board. Current U-Boot code
has watchdog resets in random places and often
there is situation when watchdog is reset
few times in a row in nested functions.
This adds extra delays and slows the whole system.

Instead of polling W_PEND_WTGR bit, we skip
watchdog reset if the bit is set. Anyway, watchdog
is in the middle of reset *right now*, so we can
just return.

This noticeably increases performance of the
system. Below are some measurements on BBB:
 - DFU upload over USB                 15% faster
 - fastboot image upload               3x times faster
 - USB ep0 transfers with 4k packets   20% faster

Signed-off-by: default avatarRuslan Bilovol <ruslan.bilovol@gmail.com>
Tested-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: default avatarLukasz Majewski <lukma@denx.de>
Tested-by: default avatarAlex Kiernan <alex.kiernan@gmail.com>
parent fc228dc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment