Re: [PATCH 3/8] pci: Use pci_for_each_device_under_bus*()

2021-10-21 Thread Peter Xu
On Thu, Oct 21, 2021 at 01:34:07PM +0200, Eric Auger wrote: > Hi Peter, > On 10/21/21 12:42 PM, Peter Xu wrote: > > Replace all the call sites of existing pci_for_each_device*() where the bus > > number is calculated from a PCIBus* already. It should avoid the lookup of > > the > > PCIBus again.

Re: [PATCH 3/8] pci: Use pci_for_each_device_under_bus*()

2021-10-21 Thread Eric Auger
Hi Peter, On 10/21/21 12:42 PM, Peter Xu wrote: > Replace all the call sites of existing pci_for_each_device*() where the bus > number is calculated from a PCIBus* already. It should avoid the lookup of > the > PCIBus again. > > Signed-off-by: Peter Xu > --- > hw/i386/acpi-build.c | 5 ++

Re: [PATCH 3/8] pci: Use pci_for_each_device_under_bus*()

2021-10-21 Thread David Hildenbrand
On 21.10.21 12:42, Peter Xu wrote: > Replace all the call sites of existing pci_for_each_device*() where the bus > number is calculated from a PCIBus* already. It should avoid the lookup of > the > PCIBus again. > > Signed-off-by: Peter Xu > --- > hw/i386/acpi-build.c | 5 ++--- > hw/pc

[PATCH 3/8] pci: Use pci_for_each_device_under_bus*()

2021-10-21 Thread Peter Xu
Replace all the call sites of existing pci_for_each_device*() where the bus number is calculated from a PCIBus* already. It should avoid the lookup of the PCIBus again. Signed-off-by: Peter Xu --- hw/i386/acpi-build.c | 5 ++--- hw/pci/pcie.c | 4 +--- hw/ppc/spapr_pci.c