aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2019-05-31 16:12:38 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-06-03 10:19:59 +1000
commit8e4bb49cb5cdb66785e302127a3cf46b0f9fd9a5 (patch)
treea8024617218cd38c2301e0064c88a8d99ef22d9a /core
parentd3e07e2a07d3cf5bc67a4a451c57b3a521d5b5df (diff)
downloadskiboot-8e4bb49cb5cdb66785e302127a3cf46b0f9fd9a5.zip
skiboot-8e4bb49cb5cdb66785e302127a3cf46b0f9fd9a5.tar.gz
skiboot-8e4bb49cb5cdb66785e302127a3cf46b0f9fd9a5.tar.bz2
Remove remnants of OPAL_PCI_SET_PHB_TCE_MEMORY
There's no reason we need remnants hanging around that aren't used, so remove them and save a handful of bytes at runtime. Simultaneously, document the OPAL call removal. Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/pci-opal.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/pci-opal.c b/core/pci-opal.c
index d7abb15..a52b02a 100644
--- a/core/pci-opal.c
+++ b/core/pci-opal.c
@@ -861,21 +861,15 @@ static int64_t opal_pci_set_power_state(uint64_t async_token,
opal_call(OPAL_PCI_SET_POWER_STATE, opal_pci_set_power_state, 3);
static int64_t opal_pci_set_phb_tce_memory(uint64_t phb_id,
- uint64_t tce_mem_addr,
- uint64_t tce_mem_size)
+ uint64_t tce_mem_addr __unused,
+ uint64_t tce_mem_size __unused)
{
struct phb *phb = pci_get_phb(phb_id);
- int64_t rc;
if (!phb)
return OPAL_PARAMETER;
- if (!phb->ops->set_phb_tce_memory)
- return OPAL_UNSUPPORTED;
- phb_lock(phb);
- rc = phb->ops->set_phb_tce_memory(phb, tce_mem_addr, tce_mem_size);
- phb_unlock(phb);
- return rc;
+ return OPAL_UNSUPPORTED;
}
opal_call(OPAL_PCI_SET_PHB_TCE_MEMORY, opal_pci_set_phb_tce_memory, 3);