arm-trusted-firmware/lib/psci
Andrew F. Davis 74d27d0062 PSCI: Lookup list of parent nodes to lock only once
When acquiring or releasing the power domain locks for a given CPU the
parent nodes are looked up by walking the up the PD tree list on both the
acquire and release path, only one set of lookups is needed. Fetch the
parent nodes first and pass this list into both the acquire and release
functions to avoid the double lookup.

This also allows us to not have to do this lookup after coherency has
been exited during the core power down sequence. The shared struct
psci_cpu_pd_nodes is not placed in coherent memory like is done
for psci_non_cpu_pd_nodes and doing so would negatively affect
performance. With this patch we remove the need to have it in coherent
memory by moving the access out of psci_release_pwr_domain_locks().

Signed-off-by: Andrew F. Davis <afd@ti.com>
Change-Id: I7b9cfa9d31148dea0f5e21091c8b45ef7fe4c4ab
2019-06-06 11:31:47 -04:00
..
aarch32 Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
aarch64 Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_common.c PSCI: Lookup list of parent nodes to lock only once 2019-06-06 11:31:47 -04:00
psci_lib.mk mem_protect: Add mem_protect API 2017-09-25 13:32:20 +01:00
psci_main.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_mem_protect.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_off.c PSCI: Lookup list of parent nodes to lock only once 2019-06-06 11:31:47 -04:00
psci_on.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_private.h PSCI: Lookup list of parent nodes to lock only once 2019-06-06 11:31:47 -04:00
psci_setup.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_stat.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci_suspend.c PSCI: Lookup list of parent nodes to lock only once 2019-06-06 11:31:47 -04:00
psci_system_off.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00