diff mbox

[API-NEXT,4/5] api: schedule: remove odp_schedule_order_lock_init() API

Message ID 1441507824-16437-5-git-send-email-bill.fischofer@linaro.org
State Superseded
Headers show

Commit Message

Bill Fischofer Sept. 6, 2015, 2:50 a.m. UTC
Remove deprecated API. This has been superseded by the lock_count
 parameter passed to odp_queue_create().

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/schedule.h            | 18 ------------------
 test/validation/scheduler/scheduler.c |  6 ------
 2 files changed, 24 deletions(-)
diff mbox

Patch

diff --git a/include/odp/api/schedule.h b/include/odp/api/schedule.h
index b0b7425..11f85ad 100644
--- a/include/odp/api/schedule.h
+++ b/include/odp/api/schedule.h
@@ -297,24 +297,6 @@  int odp_schedule_group_thrmask(odp_schedule_group_t group,
 			       odp_thrmask_t *thrmask);
 
 /**
- * Initialize ordered context lock
- *
- * Initialize an ordered queue context lock. The lock can be associated only
- * with ordered queues and used only within an ordered synchronization context.
- *
- * @param lock    Ordered context lock
- * @param queue   Ordered queue
- *
- * @retval 0 on success
- * @retval <0 on failure
- *
- * @note At present a thread may only use a single ordered lock. Attempts to
- * use multiple ordered locks within an order context are undefined.
- */
-int odp_schedule_order_lock_init(odp_schedule_order_lock_t *lock,
-				 odp_queue_t queue);
-
-/**
  * Acquire ordered context lock
  *
  * This call is valid only when holding an ordered synchronization context. The
diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c
index 1874889..8cde985 100644
--- a/test/validation/scheduler/scheduler.c
+++ b/test/validation/scheduler/scheduler.c
@@ -964,12 +964,6 @@  static int create_queues(void)
 			qctx->ctx_handle = queue_ctx_buf;
 			qctx->sequence = 0;
 			qctx->lock_sequence = 0;
-			rc = odp_schedule_order_lock_init(&qctx->order_lock, q);
-
-			if (rc != 0) {
-				printf("Ordered lock init failed\n");
-				return -1;
-			}
 
 			rc = odp_queue_context_set(q, qctx);