hyperv/et: Allow Hyper-V event timer be disabled

MFC after:	1 week
Sponsored by:	Microsoft OSTC
Differential Revision:	https://reviews.freebsd.org/D6599
This commit is contained in:
Sepherosa Ziehau 2016-05-30 09:44:17 +00:00
parent 6072b2511c
commit 496d023db3

View File

@ -113,6 +113,9 @@ vmbus_et_identify(driver_t *driver, device_t parent)
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);