Page MenuHomeFreeBSD

D6416.id16514.diff
No OneTemporary

D6416.id16514.diff

Index: head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
@@ -545,7 +545,7 @@
}
static void
-vmbus_init(void)
+vmbus_sysinit(void *arg __unused)
{
if (vm_guest != VM_GUEST_HV || vmbus_get_softc() == NULL)
return;
@@ -624,6 +624,10 @@
MODULE_VERSION(vmbus, 1);
#ifndef EARLY_AP_STARTUP
-/* We want to be started after SMP is initialized */
-SYSINIT(vmb_init, SI_SUB_SMP + 1, SI_ORDER_FIRST, vmbus_init, NULL);
+/*
+ * NOTE:
+ * We have to start as the last step of SI_SUB_SMP, i.e. after SMP is
+ * initialized.
+ */
+SYSINIT(vmbus_initialize, SI_SUB_SMP, SI_ORDER_ANY, vmbus_sysinit, NULL);
#endif

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 14, 5:50 PM (19 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29678744
Default Alt Text
D6416.id16514.diff (785 B)

Event Timeline