When running on Hyper-V, make use of its timecounter as delay func in case
authorpatrick <patrick@openbsd.org>
Tue, 31 Aug 2021 15:52:10 +0000 (15:52 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 31 Aug 2021 15:52:10 +0000 (15:52 +0000)
commit69b036cd78eca671fc5a0a62cfb36d990fe87194
tree5eaaa4265ecd787a6815f15ebe50df6f26af4d94
parent5280e11119be648630599c383004733f6bed28e8
When running on Hyper-V, make use of its timecounter as delay func in case
we're still using the i8254 for that.  On Hyper-V Gen 2 VMs there is no
i8254 we can trust, so we need some kind of fallback, especially if there
is no TSC either.

Discussed with the hackroom
ok kettenis@
sys/dev/pv/hyperv.c
sys/dev/pv/pvbus.c