commit | f7550d076d55c1b5f02f95012e3a5a84d264c47d | [log] [tgz] |
---|---|---|
author | Minfei Huang <mnghuan@gmail.com> | Fri May 27 14:17:11 2016 +0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Jun 27 15:12:14 2016 +0200 |
tree | 512176d99176c8a520fd63947b61b59d7f1b1bc9 | |
parent | 749d088b8e7f4b9826ede02b9a043e417fa84aa1 [diff] |
pvclock: Cleanup to remove function pvclock_get_nsec_offset 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 <mnghuan@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>