Searched hist:"784802689 f84b716de1fbdd2cef30e303b73b3e8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/acpi/ |
H A D | pcihp.c | diff 784802689f84b716de1fbdd2cef30e303b73b3e8 Wed Dec 29 01:57:53 CST 2021 Ani Sinha <ani@anisinha.ca> acpihp: simplify acpi_pcihp_disable_root_bus
Get rid of the static variable that keeps track of whether hotplug has been disabled on the root pci bus. Simply use qbus_is_hotpluggable() api to perform the same check. This eliminates additional if conditional and simplifies the function.
Signed-off-by: Ani Sinha <ani@anisinha.ca> Message-Id: <1640764674-7784-1-git-send-email-ani@anirban.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|