commit | 796ae2552e95223881acf9dc9b039ed95b391a2a | [log] [tgz] |
---|---|---|
author | Benoît Thébaudeau <benoit.thebaudeau@advansee.com> | Tue Aug 14 05:01:21 2012 +0000 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Sat Sep 01 14:58:26 2012 +0200 |
tree | 01eb70f50d175cad48dbbd8030dfe4f7d09a0ae2 | |
parent | c8750c6b9f5d0e89cd1fc68b51d6d990ded552a6 [diff] |
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>