mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
feat(zynqmp): remove unused pm_get_proc_by_node()
The pm_get_proc_by_node() is not used anywhere. Hence remove the same. Change-Id: Ifd68dd524cae0a9f1684d943019563027859ccea Signed-off-by: Ronak Jain <ronak.jain@amd.com>
This commit is contained in:
parent
753c49d512
commit
b03ba4801d
2 changed files with 2 additions and 20 deletions
|
@ -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 */
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue