mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
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 <wei.liu@kernel.org> Reviewed-by: Pavel Tatashin <pasha.tatashin@soleen.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20210203150435.27941-4-wei.liu@kernel.org
This commit is contained in:
parent
e997720202
commit
7e279d7866
|
|
@ -2645,6 +2645,9 @@ static int __init hv_acpi_init(void)
|
||||||
if (!hv_is_hyperv_initialized())
|
if (!hv_is_hyperv_initialized())
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
if (hv_root_partition)
|
||||||
|
return 0;
|
||||||
|
|
||||||
init_completion(&probe_event);
|
init_completion(&probe_event);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user