svn commit: r300994 - head/sys/dev/hyperv/vmbus
Sepherosa Ziehau
sephe at FreeBSD.org
Mon May 30 09:44:18 UTC 2016
Author: sephe
Date: Mon May 30 09:44:17 2016
New Revision: 300994
URL: https://svnweb.freebsd.org/changeset/base/300994
Log:
hyperv/et: Allow Hyper-V event timer be disabled
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6599
Modified:
head/sys/dev/hyperv/vmbus/hv_et.c
Modified: head/sys/dev/hyperv/vmbus/hv_et.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_et.c Mon May 30 09:35:36 2016 (r300993)
+++ head/sys/dev/hyperv/vmbus/hv_et.c Mon May 30 09:44:17 2016 (r300994)
@@ -113,6 +113,9 @@ vmbus_et_identify(driver_t *driver, devi
static int
vmbus_et_probe(device_t dev)
{
+ if (resource_disabled(VMBUS_ET_NAME, 0))
+ return (ENXIO);
+
device_set_desc(dev, "Hyper-V event timer");
return (BUS_PROBE_NOWILDCARD);
More information about the svn-src-head
mailing list