diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-05-31 16:13:21 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-03 10:20:00 +1000 |
commit | a98ca2e80d49e398ecf17168e0211c1887b5c1c3 (patch) | |
tree | 2ff97a811d95e1f1c0a745ad7ee6910515a9e00d /core | |
parent | fb0bd9be4132271376f60ac5e434553b593ac481 (diff) | |
download | skiboot-a98ca2e80d49e398ecf17168e0211c1887b5c1c3.zip skiboot-a98ca2e80d49e398ecf17168e0211c1887b5c1c3.tar.gz skiboot-a98ca2e80d49e398ecf17168e0211c1887b5c1c3.tar.bz2 |
Remove unused OPAL_GET_XIVE_SOURCE
While this call was technically implemented by skiboot, no code has ever called
it, and it was only ever implemented for the p7ioc-phb back-end (i.e. POWER7).
Since this call was unused in Linux, and that POWER7 with OPAL was only ever
available internally, so it should be safe to remove the call.
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/pci-opal.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/pci-opal.c b/core/pci-opal.c index 2d21786..043d948 100644 --- a/core/pci-opal.c +++ b/core/pci-opal.c @@ -378,27 +378,6 @@ static int64_t opal_pci_set_xive_pe(uint64_t phb_id, uint64_t pe_number, } opal_call(OPAL_PCI_SET_XIVE_PE, opal_pci_set_xive_pe, 3); -static int64_t opal_get_xive_source(uint64_t phb_id, uint32_t xive_num, - int32_t *interrupt_source_number) -{ - struct phb *phb = pci_get_phb(phb_id); - int64_t rc; - - if (!opal_addr_valid(interrupt_source_number)) - return OPAL_PARAMETER; - - if (!phb) - return OPAL_PARAMETER; - if (!phb->ops->get_xive_source) - return OPAL_UNSUPPORTED; - phb_lock(phb); - rc = phb->ops->get_xive_source(phb, xive_num, interrupt_source_number); - phb_unlock(phb); - - return rc; -} -opal_call(OPAL_GET_XIVE_SOURCE, opal_get_xive_source, 3); - static int64_t opal_get_msi_32(uint64_t phb_id, uint32_t mve_number, uint32_t xive_num, uint8_t msi_range, uint32_t *msi_address, uint32_t *message_data) |