diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2015-12-11 13:30:51 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-12-29 14:13:46 +0300 |
commit | 38ea9fce3facb7ef43810312c9a650ad753d81c2 (patch) | |
tree | 5229eff711e4965f38f2c33b18cbb5dc69e9f25f /platform | |
parent | 5c30c35b62c880f1807995c7a0b30a30cfdc8263 (diff) |
api: sync: removed odp_sync_stores
Removed odp_sync_stores() implementation and replaced usage with
odp_mb_full(), to minimize functional changes. Added minimal
validation test function for the new memory barriers.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-generic/include/odp/sync.h | 5 | ||||
-rw-r--r-- | platform/linux-generic/odp_queue.c | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/platform/linux-generic/include/odp/sync.h b/platform/linux-generic/include/odp/sync.h index bfe67eeb4..b2995e19c 100644 --- a/platform/linux-generic/include/odp/sync.h +++ b/platform/linux-generic/include/odp/sync.h @@ -36,11 +36,6 @@ static inline void odp_mb_full(void) __atomic_thread_fence(__ATOMIC_SEQ_CST); } -static inline void odp_sync_stores(void) -{ - __atomic_thread_fence(__ATOMIC_RELEASE); -} - /** * @} */ diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index db3399ce3..e39176c65 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -355,9 +355,9 @@ int odp_queue_context_set(odp_queue_t handle, void *context) { queue_entry_t *queue; queue = queue_to_qentry(handle); - odp_sync_stores(); + odp_mb_full(); queue->s.param.context = context; - odp_sync_stores(); + odp_mb_full(); return 0; } |