hpet: remove muldiv64()
commit0a4f9240f5b8b1bfe2d5c5c2748545bc23771bb4
authorLaurent Vivier <lvivier@redhat.com>
Tue, 25 Aug 2015 15:13:01 +0000 (25 17:13 +0200)
committerLaurent Vivier <lvivier@redhat.com>
Fri, 25 Sep 2015 12:56:05 +0000 (25 14:56 +0200)
tree31b198f7c8c1d4bbdb0530278766a422c8a0bc2c
parent352c98e502893dee405d0bd8301264fca3b79179
hpet: remove muldiv64()

hpet defines a clock period in femtoseconds but
then converts it to nanoseconds to use the internal
timers.

We can define the period in nanoseconds and use it
directly, this allows to remove muldiv64().

We only need to convert the period to femtoseconds
to put it in internal hpet capability register.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
hw/timer/hpet.c
include/hw/timer/hpet.h