commit | 352c98e502893dee405d0bd8301264fca3b79179 | [log] [tgz] |
---|---|---|
author | Laurent Vivier <lvivier@redhat.com> | Tue Aug 25 17:09:36 2015 +0200 |
committer | Laurent Vivier <lvivier@redhat.com> | Fri Sep 25 14:55:21 2015 +0200 |
tree | 3077c09b968d0f3ec1c9e08e6b182d263e589540 | |
parent | ccaf1749239aa33c5a5b755972232ffe1c0cf946 [diff] |
arm: clarify the use of muldiv64() muldiv64() is used to convert microseconds into CPU ticks. But it is not clear and not commented. This patch uses macro to clearly identify what is used: time, CPU frequency and ticks. For an elapsed time and a given frequency, we compute how many ticks we have. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Acked-by: Peter Maydell <peter.maydell@linaro.org>