diff options
| author | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-04-11 03:36:07 +0000 |
|---|---|---|
| committer | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-04-11 03:36:07 +0000 |
| commit | c8d7fb6a5c458bd8f6dd55f90f705b29ff326032 (patch) | |
| tree | 76b533b0dff07593d201bfc43a38981800a754f4 /sys/dev | |
| parent | 68247c05c2d3901bcfb0ec7731ee5133d0c2f988 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/hyperv/vmbus/hv_hv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_hv.c b/sys/dev/hyperv/vmbus/hv_hv.c index 21ed04e11751..0e7bb76212f6 100644 --- a/sys/dev/hyperv/vmbus/hv_hv.c +++ b/sys/dev/hyperv/vmbus/hv_hv.c @@ -167,8 +167,6 @@ hv_vmbus_init(void) hv_vmbus_g_context.hypercall_page = virt_addr; - tc_init(&hv_timecounter); /* register virtual timecount */ - hv_et_init(); return (0); @@ -480,5 +478,10 @@ hyperv_init(void *dummy __unused) { if (!hyperv_identify()) return; + + if (hyperv_features & HV_FEATURE_MSR_TIME_REFCNT) { + /* Register virtual timecount */ + tc_init(&hv_timecounter); + } } SYSINIT(hyperv_initialize, SI_SUB_HYPERVISOR, SI_ORDER_FIRST, hyperv_init, NULL); |
