User should pick a synchronisation method and use SYNC_NONE if
does not need synchronization.

Signed-off-by: Petri Savolainen <petri.savolai...@nokia.com>
---
 include/odp/api/queue.h                               | 5 -----
 platform/linux-generic/include/odp/plat/queue_types.h | 2 --
 platform/linux-generic/odp_queue.c                    | 2 +-
 3 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/include/odp/api/queue.h b/include/odp/api/queue.h
index f7a0777..bdda845 100644
--- a/include/odp/api/queue.h
+++ b/include/odp/api/queue.h
@@ -138,11 +138,6 @@ extern "C" {
  */
 
 /**
- * @def ODP_SCHED_SYNC_DEFAULT
- * Default queue synchronisation
- */
-
-/**
  * @typedef odp_schedule_group_t
  * ODP schedule core group
  */
diff --git a/platform/linux-generic/include/odp/plat/queue_types.h 
b/platform/linux-generic/include/odp/plat/queue_types.h
index 1cecc90..9f398a1 100644
--- a/platform/linux-generic/include/odp/plat/queue_types.h
+++ b/platform/linux-generic/include/odp/plat/queue_types.h
@@ -58,8 +58,6 @@ typedef int odp_schedule_sync_t;
 #define ODP_SCHED_SYNC_ATOMIC   1
 #define ODP_SCHED_SYNC_ORDERED  2
 
-#define ODP_SCHED_SYNC_DEFAULT  ODP_SCHED_SYNC_ATOMIC
-
 typedef int odp_schedule_group_t;
 
 #define ODP_SCHED_GROUP_ALL     0
diff --git a/platform/linux-generic/odp_queue.c 
b/platform/linux-generic/odp_queue.c
index 4a0465b..7f48176 100644
--- a/platform/linux-generic/odp_queue.c
+++ b/platform/linux-generic/odp_queue.c
@@ -61,7 +61,7 @@ static void queue_init(queue_entry_t *queue, const char *name,
                /* Defaults */
                memset(&queue->s.param, 0, sizeof(odp_queue_param_t));
                queue->s.param.sched.prio  = ODP_SCHED_PRIO_DEFAULT;
-               queue->s.param.sched.sync  = ODP_SCHED_SYNC_DEFAULT;
+               queue->s.param.sched.sync  = ODP_SCHED_SYNC_ATOMIC;
                queue->s.param.sched.group = ODP_SCHED_GROUP_DEFAULT;
        }
 
-- 
2.4.5

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to