Re: [PATCH 2/3] pvclock: Cleanup to remove function pvclock_get_nsec_offset

2016-05-27 Thread Andy Lutomirski
On Thu, May 26, 2016 at 11:17 PM, Minfei Huang wrote: > Function __pvclock_read_cycles is short enough, so there is no need to > have another function pvclock_get_nsec_offset to calculate tsc delta. > It's better to combine it into function __pvclock_read_cycles. > > Remove useless variables in fu

[PATCH 2/3] pvclock: Cleanup to remove function pvclock_get_nsec_offset

2016-05-26 Thread Minfei Huang
Function __pvclock_read_cycles is short enough, so there is no need to have another function pvclock_get_nsec_offset to calculate tsc delta. It's better to combine it into function __pvclock_read_cycles. Remove useless variables in function __pvclock_read_cycles. Signed-off-by: Minfei Huang ---