[U-Boot] [PATCH v3] mmc: omap: timeout counter fix
Paulraj, Sandeep
s-paulraj at ti.com
Fri Nov 19 17:23:32 CET 2010
>
> Having a loop with a counter is no timing guarentee for timing
> accuracy or compiler optimizations. For e.g. the same loop counter
> which runs when the MPU is running at 600MHz will timeout in around
> half the time when running at 1GHz. or the example where GCC 4.5
> compiles with different optimization compared to GCC 4.4. use timer
> to keep track of time elapse and we use an emperical number - 1sec
> for a worst case timeout. This should never happen, and is adequate
> imaginary condition for us to fail with timeout.
>
> Signed-off-by: Nishanth Menon <nm at ti.com>
> ---
Pushed to u-boot-ti
More information about the U-Boot
mailing list