aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Deprez <olivier.deprez@arm.com>2020-03-30 15:29:00 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2020-03-30 15:29:00 +0000
commite97841eba4590f3d149dfb2535f37e105b8ec7db (patch)
tree3ebc5812ee0f482f622fa3487d3dfe869753d014
parentde8f9cd4cd3c9292c9bf0578ed139f3c37ca5a2c (diff)
parentf27b6924d615ea3d61725891e882cdc725411ba9 (diff)
downloadplatform_external_arm-trusted-firmware-e97841eba4590f3d149dfb2535f37e105b8ec7db.tar.gz
platform_external_arm-trusted-firmware-e97841eba4590f3d149dfb2535f37e105b8ec7db.tar.bz2
platform_external_arm-trusted-firmware-e97841eba4590f3d149dfb2535f37e105b8ec7db.zip
Merge "Flush dcache when storing timestamp" into integration
-rw-r--r--plat/common/plat_psci_common.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/plat/common/plat_psci_common.c b/plat/common/plat_psci_common.c
index bed8890a7..c32e59f9c 100644
--- a/plat/common/plat_psci_common.c
+++ b/plat/common/plat_psci_common.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2020, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@@ -63,7 +63,6 @@ static u_register_t calc_stat_residency(unsigned long long pwrupts,
/*
* Capture timestamp before entering a low power state.
- * No cache maintenance is required when capturing the timestamp.
* Cache maintenance may be needed when reading these timestamps.
*/
void plat_psci_stat_accounting_start(
@@ -71,12 +70,11 @@ void plat_psci_stat_accounting_start(
{
assert(state_info != NULL);
PMF_CAPTURE_TIMESTAMP(psci_svc, PSCI_STAT_ID_ENTER_LOW_PWR,
- PMF_NO_CACHE_MAINT);
+ PMF_CACHE_MAINT);
}
/*
* Capture timestamp after exiting a low power state.
- * No cache maintenance is required when capturing the timestamp.
* Cache maintenance may be needed when reading these timestamps.
*/
void plat_psci_stat_accounting_stop(
@@ -84,7 +82,7 @@ void plat_psci_stat_accounting_stop(
{
assert(state_info != NULL);
PMF_CAPTURE_TIMESTAMP(psci_svc, PSCI_STAT_ID_EXIT_LOW_PWR,
- PMF_NO_CACHE_MAINT);
+ PMF_CACHE_MAINT);
}
/*