[Skiboot] [PATCH 2/4] PCI: Move PHB lock to generic layer
Stewart Smith
stewart at linux.vnet.ibm.com
Tue May 3 19:08:02 AEST 2016
Gavin Shan <gwshan at linux.vnet.ibm.com> writes:
> All kinds of PHBs are maintaining a spinlock. At mean while, the
> spinlock is acquired or released by backends for phb_ops->lock()
> or phb_ops->unlock(). There're no difference of the logic on all
> kinds of PHBs. So it's reasonable to maintain the lock in the
> generic layer (struct phb).
>
> This moves lock from specific PHB to generic one. The spinlock is
> initialized when the generic PHB is registered in pci_register_phb().
> Also, two inline functions phb_{lock, unlock}() are introduced to
> acquire/release it. No logical changes introduced.
>
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
Merged to master as of 1abcd49
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list