]> git.dujemihanovic.xyz Git - u-boot.git/commit
mx5/6 timer: Round up tick_to_time() value
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Tue, 14 Aug 2012 05:01:21 +0000 (05:01 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:26 +0000 (14:58 +0200)
commit68d919d42053af99c5220d0469aa4b3de2ae1c55
tree01eb70f50d175cad48dbbd8030dfe4f7d09a0ae2
parentf2d3ae0739617a671c09297dc49bf6d92b4c8bdc
mx5/6 timer: Round up tick_to_time() value

Round up tick_to_time() value instead of truncating it. This avoids stopping
waits instantly for low usec values, and this generally guarantees that the code
always waits for at least the requested duration.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/imx-common/timer.c