From: Wei Liu Date: Wed, 3 Feb 2021 15:04:22 +0000 (+0000) Subject: Drivers: hv: vmbus: skip VMBus initialization if Linux is root X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e279d78664aa91107ebff4b03eca367967f5908;p=linux.git Drivers: hv: vmbus: skip VMBus initialization if Linux is root There is no VMBus and the other infrastructures initialized in hv_acpi_init when Linux is running as the root partition. Signed-off-by: Wei Liu Reviewed-by: Pavel Tatashin Reviewed-by: Michael Kelley Link: https://lore.kernel.org/r/20210203150435.27941-4-wei.liu@kernel.org --- diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 65535c32662d4..10dce9f912168 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -2645,6 +2645,9 @@ static int __init hv_acpi_init(void) if (!hv_is_hyperv_initialized()) return -ENODEV; + if (hv_root_partition) + return 0; + init_completion(&probe_event); /*