Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 May 2016 05:37:42 +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: r300652 - head/sys/dev/hyperv/vmbus
Message-ID:  <201605250537.u4P5bgEK090945@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Wed May 25 05:37:42 2016
New Revision: 300652
URL: https://svnweb.freebsd.org/changeset/base/300652

Log:
  hyperv/vmbus: Pass vmbus softc to vmbus_synic_setup
  
  MFC after:	1 week
  Sponsored by:	Microsoft OSTC
  Differential Revision:	https://reviews.freebsd.org/D6527

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 25 05:30:48 2016	(r300651)
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c	Wed May 25 05:37:42 2016	(r300652)
@@ -207,9 +207,9 @@ hv_vector_handler(struct trapframe *trap
 }
 
 static void
-vmbus_synic_setup(void *arg __unused)
+vmbus_synic_setup(void *xsc)
 {
-	struct vmbus_softc *sc = vmbus_get_softc();
+	struct vmbus_softc *sc = xsc;
 	int			cpu;
 	hv_vmbus_synic_simp	simp;
 	hv_vmbus_synic_siefp	siefp;
@@ -614,7 +614,7 @@ vmbus_bus_init(void)
 	 */
 	if (bootverbose)
 		device_printf(sc->vmbus_dev, "smp_started = %d\n", smp_started);
-	smp_rendezvous(NULL, vmbus_synic_setup, NULL, NULL);
+	smp_rendezvous(NULL, vmbus_synic_setup, NULL, sc);
 	sc->vmbus_flags |= VMBUS_FLAG_SYNIC;
 
 	/*



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