On Thu, 29 Nov 2018 08:32:03 +0000 Pavan Nikhilesh <pbhagavat...@caviumnetworks.com> wrote:
> When estimating tsc frequency using sleep/gettime round it up to the > nearest multiple of 10Mhz for more accuracy. > > Signed-off-by: Pavan Nikhilesh <pbhagavat...@caviumnetworks.com> Rounding reduces accuracy. Why is this code being used? Shouldn't get_tsc_freq_arch return a correct value? How well does the rdmsr() logic work in VM? It looks like Hyper-V has special MSR's for TSC frequency determination.