]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hyperv: Register Hyper-V timer early enough for TSC freq calibration
authorSepherosa Ziehau <sephe@FreeBSD.org>
Fri, 1 Apr 2016 06:17:57 +0000 (06:17 +0000)
committerSepherosa Ziehau <sephe@FreeBSD.org>
Fri, 1 Apr 2016 06:17:57 +0000 (06:17 +0000)
commit04c247a1d073b57419345ae83581f2cb4db7d61f
tree1b79483a202fd71a84267193093cd32a4429b55f
parentdf04a188af6a41719f8c028e702c9c5374b451e4
hyperv: Register Hyper-V timer early enough for TSC freq calibration

The i8254 simulation in Hyper-V is kinda broken and is not available
in Generation 2 Hyper-V VMs, so Hyper-V timer must be registered early
enough so that it can be used to do the TSC freq calibration.

This fixes the notorious warning like this:
calcru: runtime went backwards from 50 usec to 25 usec for pid 0 (kernel)

Submitted by: Dexuan Cui <decui microsoft com>
Reviewed by: kib, sephe
Tested by: kib, sephe
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5778
sys/dev/hyperv/vmbus/hv_hv.c