aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/main.c
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2015-08-25 17:09:36 +0200
committerLaurent Vivier <lvivier@redhat.com>2015-09-25 14:55:21 +0200
commit352c98e502893dee405d0bd8301264fca3b79179 (patch)
tree3077c09b968d0f3ec1c9e08e6b182d263e589540 /bsd-user/main.c
parentccaf1749239aa33c5a5b755972232ffe1c0cf946 (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>
Diffstat (limited to 'bsd-user/main.c')
0 files changed, 0 insertions, 0 deletions