aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp/api/plat/sync_inlines.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2023-08-17 15:39:46 +0300
committerGitHub <noreply@github.com>2023-08-17 15:39:46 +0300
commit5d505fde6d4327b27446389699abf3a593c02a17 (patch)
tree937164d89e7b8679a42f0e3705e19243baaf0147 /platform/linux-generic/include/odp/api/plat/sync_inlines.h
parentde97121a2e3afa072f7c51a0570f4b3bed0236c2 (diff)
parent7a200d709b64e743c002dd9737cd71f54ccc54ac (diff)
Merge ODP v1.42.0.0v1.42.0.0_DPDK_22.11
Merge ODP linux-generic v1.42.0.0 into linux-dpdk.
Diffstat (limited to 'platform/linux-generic/include/odp/api/plat/sync_inlines.h')
-rw-r--r--platform/linux-generic/include/odp/api/plat/sync_inlines.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/platform/linux-generic/include/odp/api/plat/sync_inlines.h b/platform/linux-generic/include/odp/api/plat/sync_inlines.h
index b6a96188c..b3a88b629 100644
--- a/platform/linux-generic/include/odp/api/plat/sync_inlines.h
+++ b/platform/linux-generic/include/odp/api/plat/sync_inlines.h
@@ -1,7 +1,6 @@
-/* Copyright (c) 2016-2018, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2016-2018 Linaro Limited
+ * Copyright (c) 2023 Nokia
*/
/**
@@ -13,6 +12,8 @@
#ifndef ODP_PLAT_SYNC_INLINE_H_
#define ODP_PLAT_SYNC_INLINE_H_
+#include <odp/api/abi/sync_inlines.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -25,6 +26,9 @@ extern "C" {
#define odp_mb_release __odp_mb_release
#define odp_mb_acquire __odp_mb_acquire
#define odp_mb_full __odp_mb_full
+ #define odp_mb_sync __odp_mb_sync
+ #define odp_mb_sync_load __odp_mb_sync_load
+ #define odp_mb_sync_store __odp_mb_sync_store
#else
#define _ODP_INLINE
#endif
@@ -44,6 +48,21 @@ _ODP_INLINE void odp_mb_full(void)
__atomic_thread_fence(__ATOMIC_SEQ_CST);
}
+_ODP_INLINE void odp_mb_sync(void)
+{
+ _odp_mb_sync();
+}
+
+_ODP_INLINE void odp_mb_sync_load(void)
+{
+ _odp_mb_sync_load();
+}
+
+_ODP_INLINE void odp_mb_sync_store(void)
+{
+ _odp_mb_sync_store();
+}
+
/** @endcond */
#ifdef __cplusplus