[U-Boot] [PATCH v2] common/xyzModem.c: Fix delay timeout calculation

Tom Rini trini at konsulko.com
Fri Sep 23 21:57:56 CEST 2016


On Tue, Sep 20, 2016 at 10:39:49AM -0500, Andrew F. Davis wrote:

> When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2
> seconds by incrementing and checking a counter variable every 20
> uSeconds. The overhead in the loop calling tstc() thousands of times
> causes the timeout to be closer to 20 seconds. Delay longer per iteration
> to reduce overhead and bring the timeout back closer to the correct time.
> 
> Signed-off-by: Andrew F. Davis <afd at ti.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160923/788fc323/attachment.sig>


More information about the U-Boot mailing list