Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2016 07:01:32 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300126 - head/sys/dev/hyperv/vmbus
Message-ID:  <201605180701.u4I71Wla070208@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Wed May 18 07:01:32 2016
New Revision: 300126
URL: https://svnweb.freebsd.org/changeset/base/300126

Log:
  hyperv/vmbus: Fix SYSINIT function prototype and usage.
  
  Reviewed by:	Jun Su <junsu microsoft com>
  MFC after:	1 week
  Sponsored by:	Microsoft OSTC
  Differential Revision:	https://reviews.freebsd.org/D6416

Modified:
  head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c

Modified: head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c	Wed May 18 07:01:22 2016	(r300125)
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c	Wed May 18 07:01:32 2016	(r300126)
@@ -545,7 +545,7 @@ vmbus_attach(device_t dev)
 }
 
 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_DEPEND(vmbus, acpi, 1, 1, 1);
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605180701.u4I71Wla070208>