summaryrefslogtreecommitdiffstats
path: root/include/hw/timer
diff options
context:
space:
mode:
authorLaurent Vivier2015-08-25 17:09:36 +0200
committerLaurent Vivier2015-09-25 14:55:21 +0200
commit352c98e502893dee405d0bd8301264fca3b79179 (patch)
tree3077c09b968d0f3ec1c9e08e6b182d263e589540 /include/hw/timer
parentopenrisc: remove muldiv64() (diff)
downloadqemu-352c98e502893dee405d0bd8301264fca3b79179.tar.gz
qemu-352c98e502893dee405d0bd8301264fca3b79179.tar.xz
qemu-352c98e502893dee405d0bd8301264fca3b79179.zip
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 'include/hw/timer')
0 files changed, 0 insertions, 0 deletions