On Fri, Oct 02, 2015 at 05:26:14PM +0300, Alberto Garcia wrote: > +int64_t cpu_get_clock(void) > +{ > + return my_clock_value; > +}
Please add a comment here explaining that this is the clock for QEMU_CLOCK_VIRTUAL. > +/* Account a value > + * > + * @ta: the TimedAverage structure > + * @value: the value to account > + */ > +void timed_average_account(TimedAverage *ta, uint64_t value) > +{ > + int i; > + check_expirations(ta); > + > + /* Do the accouting in both windows at the same time */ s/accouting/accounting/