diff mbox

[3/3] api: schedule: remove odp_schedule_one

Message ID 1418409304-1924-4-git-send-email-mike.holmes@linaro.org
State Superseded
Headers show

Commit Message

Mike Holmes Dec. 12, 2014, 6:35 p.m. UTC
For the initial realease this api has been removed from the
specification.

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 platform/linux-generic/include/api/odp_schedule.h | 25 -----------------------
 platform/linux-generic/odp_schedule.c             | 12 -----------
 2 files changed, 37 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/include/api/odp_schedule.h b/platform/linux-generic/include/api/odp_schedule.h
index 91fec10..cdf6705 100644
--- a/platform/linux-generic/include/api/odp_schedule.h
+++ b/platform/linux-generic/include/api/odp_schedule.h
@@ -64,31 +64,6 @@  uint64_t odp_schedule_wait_time(uint64_t ns);
 odp_buffer_t odp_schedule(odp_queue_t *from, uint64_t wait);
 
 /**
- * Schedule one buffer
- *
- * Like odp_schedule(), but is quaranteed to schedule only one buffer at a time.
- * Each call will perform global scheduling and will reserve one buffer per
- * thread in maximum. When called after other schedule functions, returns
- * locally stored buffers (if any) first, and then continues in the global
- * scheduling mode.
- *
- * This function optimises priority scheduling (over throughput).
- *
- * User can exit the schedule loop without first calling odp_schedule_pause().
- *
- * @param from    Output parameter for the source queue (where the buffer was
- *                dequeued from). Ignored if NULL.
- * @param wait    Minimum time to wait for a buffer. Waits infinitely, if set to
- *                ODP_SCHED_WAIT. Does not wait, if set to ODP_SCHED_NO_WAIT.
- *                Use odp_schedule_wait_time() to convert time to other wait
- *                values.
- *
- * @return Next highest priority buffer, or ODP_BUFFER_INVALID
- */
-odp_buffer_t odp_schedule_one(odp_queue_t *from, uint64_t wait);
-
-
-/**
  * Schedule multiple buffers
  *
  * Like odp_schedule(), but returns multiple buffers from a queue.
diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c
index 7c09c23..0ee8d75 100644
--- a/platform/linux-generic/odp_schedule.c
+++ b/platform/linux-generic/odp_schedule.c
@@ -385,18 +385,6 @@  odp_buffer_t odp_schedule(odp_queue_t *out_queue, uint64_t wait)
 }
 
 
-odp_buffer_t odp_schedule_one(odp_queue_t *out_queue, uint64_t wait)
-{
-	odp_buffer_t buf;
-
-	buf = ODP_BUFFER_INVALID;
-
-	schedule_loop(out_queue, wait, &buf, 1, 1);
-
-	return buf;
-}
-
-
 int odp_schedule_multi(odp_queue_t *out_queue, uint64_t wait,
 		       odp_buffer_t out_buf[], unsigned int num)
 {