Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
e97841eb
Commit
e97841eb
authored
Mar 30, 2020
by
Olivier Deprez
Committed by
TrustedFirmware Code Review
Mar 30, 2020
Browse files
Merge "Flush dcache when storing timestamp" into integration
parents
de8f9cd4
f27b6924
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/common/plat_psci_common.c
View file @
e97841eb
/*
/*
* Copyright (c) 2016-20
19
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016-20
20
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
...
@@ -63,7 +63,6 @@ static u_register_t calc_stat_residency(unsigned long long pwrupts,
...
@@ -63,7 +63,6 @@ static u_register_t calc_stat_residency(unsigned long long pwrupts,
/*
/*
* Capture timestamp before entering a low power state.
* 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.
* Cache maintenance may be needed when reading these timestamps.
*/
*/
void
plat_psci_stat_accounting_start
(
void
plat_psci_stat_accounting_start
(
...
@@ -71,12 +70,11 @@ void plat_psci_stat_accounting_start(
...
@@ -71,12 +70,11 @@ void plat_psci_stat_accounting_start(
{
{
assert
(
state_info
!=
NULL
);
assert
(
state_info
!=
NULL
);
PMF_CAPTURE_TIMESTAMP
(
psci_svc
,
PSCI_STAT_ID_ENTER_LOW_PWR
,
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.
* 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.
* Cache maintenance may be needed when reading these timestamps.
*/
*/
void
plat_psci_stat_accounting_stop
(
void
plat_psci_stat_accounting_stop
(
...
@@ -84,7 +82,7 @@ void plat_psci_stat_accounting_stop(
...
@@ -84,7 +82,7 @@ void plat_psci_stat_accounting_stop(
{
{
assert
(
state_info
!=
NULL
);
assert
(
state_info
!=
NULL
);
PMF_CAPTURE_TIMESTAMP
(
psci_svc
,
PSCI_STAT_ID_EXIT_LOW_PWR
,
PMF_CAPTURE_TIMESTAMP
(
psci_svc
,
PSCI_STAT_ID_EXIT_LOW_PWR
,
PMF_
NO_
CACHE_MAINT
);
PMF_CACHE_MAINT
);
}
}
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment