Re: [Qemu-devel] [PATCH v3 2/9] rtl8139: remove muldiv64()

2015-08-28 Thread Stefan Hajnoczi
On Thu, Aug 27, 2015 at 09:33:00PM +0200, Laurent Vivier wrote: > 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 >

[Qemu-devel] [PATCH v3 2/9] rtl8139: remove muldiv64()

2015-08-27 Thread Laurent Vivier
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, by doin