/* In order to support the fast lookup of devices based on addresses, we maintain a cache of devices that can be quickly searched. This routine adds a device to that cache.  */
void pci_addr_cache_insert_device(struct pci_dev *dev)
/* In order to support the fast lookup of devices based on addresses, we maintain a cache of devices that can be quickly searched. This routine adds a device to that cache.  */
void pci_addr_cache_insert_device(struct pci_dev *dev)
{
	unsigned long flags;
	if ((dev->class >> 16) == PCI_BASE_CLASS_BRIDGE)
		return;
	spin_lock_irqsave(&pci_io_addr_cache_root.piar_lock, flags);
	__pci_addr_cache_insert_device(dev);
	spin_unlock_irqrestore(&pci_io_addr_cache_root.piar_lock, flags);
}