Merge "feat(zynqmp): remove unused pm_get_proc_by_node()" into integration

This commit is contained in:
Joanna Farley 2024-05-02 10:13:54 +02:00 committed by TrustedFirmware Code Review
commit 48f1bc9f52
2 changed files with 2 additions and 20 deletions

View file

@ -1,7 +1,7 @@
/*
* Copyright (c) 2013-2019, Arm Limited and Contributors. All rights reserved.
* Copyright (c) 2020-2022, Xilinx, Inc. All rights reserved.
* Copyright (c) 2022-2023, Advanced Micro Devices, Inc. All rights reserved.
* Copyright (c) 2022-2024, Advanced Micro Devices, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -31,7 +31,6 @@ extern const struct pm_proc *primary_proc;
#if defined(PLAT_zynqmp)
enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
#endif /* PLAT_zynqmp */
#endif /* PM_CLIENT_H */

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 2013-2018, Arm Limited and Contributors. All rights reserved.
* Copyright (c) 2022-2023, Advanced Micro Devices, Inc. All rights reserved.
* Copyright (c) 2022-2024, Advanced Micro Devices, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -244,23 +244,6 @@ const struct pm_proc *pm_get_proc(uint32_t cpuid)
return NULL;
}
/**
* pm_get_proc_by_node() - returns pointer to the proc structure.
* @nid: node id of the processor.
*
* Return: pointer to a proc structure if proc is found, otherwise NULL.
*
*/
const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid)
{
for (size_t i = 0; i < ARRAY_SIZE(pm_procs_all); i++) {
if (nid == pm_procs_all[i].node_id) {
return &pm_procs_all[i];
}
}
return NULL;
}
/**
* pm_get_cpuid() - get the local cpu ID for a global node ID.
* @nid: node id of the processor.