arm: clarify the use of muldiv64()
commit352c98e502893dee405d0bd8301264fca3b79179
authorLaurent Vivier <lvivier@redhat.com>
Tue, 25 Aug 2015 15:09:36 +0000 (25 17:09 +0200)
committerLaurent Vivier <lvivier@redhat.com>
Fri, 25 Sep 2015 12:55:21 +0000 (25 14:55 +0200)
tree3077c09b968d0f3ec1c9e08e6b182d263e589540
parentccaf1749239aa33c5a5b755972232ffe1c0cf946
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>
target-arm/helper.c