diff options
author | Laurent Vivier <lvivier@redhat.com> | 2015-08-25 17:19:57 +0200 |
---|---|---|
committer | Laurent Vivier <lvivier@redhat.com> | 2015-09-25 14:56:22 +0200 |
commit | fdfea124f9e12232f99d9f235267ca1eeeb23469 (patch) | |
tree | dd679eb3cdb3bef9e1687c640555c00508bb20c8 /COPYING.LIB | |
parent | 0a4f9240f5b8b1bfe2d5c5c2748545bc23771bb4 (diff) |
bt: remove muldiv64()
Originally, timers were ticks based, and it made sense to
add ticks to current time to know when to trigger an alarm.
But since commit:
7447545 change all other clock references to use nanosecond resolution accessors
All timers use nanoseconds and we need to convert ticks to nanoseconds.
As get_ticks_per_sec() is 10^9,
a = muldiv64(b, get_ticks_per_sec(), 100);
y = muldiv64(x, get_ticks_per_sec(), 1000000);
can be converted to
a = b * 10000000;
y = x * 1000;
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'COPYING.LIB')
0 files changed, 0 insertions, 0 deletions