diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2022-06-08 19:32:57 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-06-21 16:02:01 +0300 |
commit | 75fb5d8670bf3d5af62d42b19a6880c00a87d4d1 (patch) | |
tree | 4e0579cf98dfb75e19ec498e56f9cda54be15b90 /test | |
parent | 3fe55954641393c1a4844bd7fef607e2827fcc15 (diff) |
test: sched_latency: remove unnecessary pad member from core_stat_t
Remove unnecessary pad member from core_stat_t, and make the type
cache aligned.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/performance/odp_sched_latency.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/performance/odp_sched_latency.c b/test/performance/odp_sched_latency.c index 0894a403d..d4cbfda19 100644 --- a/test/performance/odp_sched_latency.c +++ b/test/performance/odp_sched_latency.c @@ -106,10 +106,8 @@ typedef struct { } test_stat_t; /** Performance test statistics (per core) */ -typedef union ODP_ALIGNED_CACHE { +typedef struct ODP_ALIGNED_CACHE { test_stat_t prio[NUM_PRIOS]; /**< Test statistics per priority */ - - uint8_t pad[CACHE_ALIGN_ROUNDUP(NUM_PRIOS * sizeof(test_stat_t))]; } core_stat_t; /** Test global variables */ |