diff options
author | Andrew F. Davis <afd@ti.com> | 2018-08-30 12:13:57 -0500 |
---|---|---|
committer | Andrew F. Davis <afd@ti.com> | 2018-10-10 13:07:56 -0500 |
commit | f996a5f79f62e17ec3bbf0d0bda46d81ddf6fcb3 (patch) | |
tree | 929f3b23038b829b4ba560143398727e2c0e134a /lib/psci/psci_common.c | |
parent | c98db6c6177ebb2afef1a94f36852dd58bc622a6 (diff) | |
download | arm-trusted-firmware-f996a5f79f62e17ec3bbf0d0bda46d81ddf6fcb3.tar.gz |
PSCI: Do not flush cache when unneeded
When a platform enables its caches before it accesses the
psci_non_cpu_pd_nodes structure then explicit cache maintenance
is not needed.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Diffstat (limited to 'lib/psci/psci_common.c')
-rw-r--r-- | lib/psci/psci_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 3bc03c884..97aeb8323 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -267,7 +267,7 @@ static plat_local_state_t *psci_get_req_local_pwr_states(unsigned int pwrlvl, static plat_local_state_t get_non_cpu_pd_node_local_state( unsigned int parent_idx) { -#if !(USE_COHERENT_MEM || HW_ASSISTED_COHERENCY) +#if !(USE_COHERENT_MEM || HW_ASSISTED_COHERENCY || WARMBOOT_ENABLE_DCACHE_EARLY) flush_dcache_range( (uintptr_t) &psci_non_cpu_pd_nodes[parent_idx], sizeof(psci_non_cpu_pd_nodes[parent_idx])); @@ -283,7 +283,7 @@ static void set_non_cpu_pd_node_local_state(unsigned int parent_idx, plat_local_state_t state) { psci_non_cpu_pd_nodes[parent_idx].local_state = state; -#if !(USE_COHERENT_MEM || HW_ASSISTED_COHERENCY) +#if !(USE_COHERENT_MEM || HW_ASSISTED_COHERENCY || WARMBOOT_ENABLE_DCACHE_EARLY) flush_dcache_range( (uintptr_t) &psci_non_cpu_pd_nodes[parent_idx], sizeof(psci_non_cpu_pd_nodes[parent_idx])); |