aboutsummaryrefslogtreecommitdiff
path: root/include/p7ioc.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-04-26 11:56:52 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-05-03 17:48:46 +1000
commit00f3d2ca92b325db1c7832e4560b564359977202 (patch)
tree86103015f09d73aedfcbf376ece2b0c25884f6d1 /include/p7ioc.h
parent98b80af1001027cc59dce040831c1f54d41e4f88 (diff)
downloadskiboot-00f3d2ca92b325db1c7832e4560b564359977202.zip
skiboot-00f3d2ca92b325db1c7832e4560b564359977202.tar.gz
skiboot-00f3d2ca92b325db1c7832e4560b564359977202.tar.bz2
PCI: Move PHB lock to generic layer
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@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/p7ioc.h')
-rw-r--r--include/p7ioc.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/p7ioc.h b/include/p7ioc.h
index c35ee11..85ea591 100644
--- a/include/p7ioc.h
+++ b/include/p7ioc.h
@@ -19,7 +19,6 @@
#include <cec.h>
#include <pci.h>
-#include <lock.h>
#include <ccan/container_of/container_of.h>
@@ -298,7 +297,6 @@ struct p7ioc_phb {
uint32_t rev; /* Both major and minor have 2 bytes */
void *regs_asb;
void *regs; /* AIB regs */
- struct lock lock;
uint32_t buid_lsi;
uint32_t buid_msi;
uint64_t io_base;