summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2016-09-19 11:57:02 +0100
committerGitHub <noreply@github.com>2016-09-19 11:57:02 +0100
commit92455d89a97a0dcc2201a8292c824aa2684af395 (patch)
tree0a81ed51ccd3081ae10a433db7e4a51fa731b755
parent0980b8ae8f12abacaee231f5ee01288946d6e55c (diff)
parent2d84b46e96124d1d4953e25d70980263163dc90a (diff)
Merge pull request #706 from dp-arm/dp/pmf-aligned-svc
Ensure PMF service timestamps are properly aligned on a cache line bo…
-rw-r--r--include/lib/pmf/pmf_helpers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/lib/pmf/pmf_helpers.h b/include/lib/pmf/pmf_helpers.h
index 9be6050f..bb4242c1 100644
--- a/include/lib/pmf/pmf_helpers.h
+++ b/include/lib/pmf/pmf_helpers.h
@@ -71,7 +71,9 @@ typedef struct pmf_svc_desc {
*/
#define PMF_ALLOCATE_TIMESTAMP_MEMORY(_name, _total_id) \
unsigned long long pmf_ts_mem_ ## _name[_total_id] \
- __section("pmf_timestamp_array") __used;
+ __aligned(CACHE_WRITEBACK_GRANULE) \
+ __section("pmf_timestamp_array") \
+ __used;
/*
* Convenience macro to validate tid index for the given TS array.