From 529a654ae2c9fb892722782dd056e36119dfac5a Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 12 Aug 2016 15:03:09 -0300 Subject: Revert "Import patch from FreeBSD D5778 to fix "runtime went backwards" in Hyper-V. Ticket #6446" This reverts commit 95be4fb0378e88b4a64a2da93e8ef4611475a916. --- sys/dev/hyperv/vmbus/hv_hv.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'sys') diff --git a/sys/dev/hyperv/vmbus/hv_hv.c b/sys/dev/hyperv/vmbus/hv_hv.c index 5589895..ca5641f 100644 --- a/sys/dev/hyperv/vmbus/hv_hv.c +++ b/sys/dev/hyperv/vmbus/hv_hv.c @@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include @@ -212,6 +211,8 @@ hv_vmbus_init(void) hv_vmbus_g_context.hypercall_page = virt_addr; + tc_init(&hv_timecounter); /* register virtual timecount */ + hv_et_init(); return (0); @@ -426,14 +427,3 @@ void hv_vmbus_synic_cleanup(void *arg) wrmsr(HV_X64_MSR_SIEFP, siefp.as_uint64_t); } -static void -hv_tc_init(void) -{ - if (vm_guest != VM_GUEST_HV) - return; - - /* register virtual timecounter */ - tc_init(&hv_timecounter); -} - -SYSINIT(hv_tc_init, SI_SUB_HYPERVISOR, SI_ORDER_FIRST, hv_tc_init, NULL); -- cgit v1.1