From patchwork Fri Dec 19 20:34:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 42499 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C5C4626C6B for ; Fri, 19 Dec 2014 20:35:30 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf1180591wgh.1 for ; Fri, 19 Dec 2014 12:35:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=DWA48Pv2cao+CX3rg7N1zWS6RvYjmBWihfxFzVnSRwE=; b=ku9kve/qt3AKGAZpBy5fhUR8BDiQapkywgmbLOMVLpa3Vq3pKYGxbTZmrMd97Eez2y pU+8cTbom3Xu1QF/PbYuCjFpq+EG6b+xktANHVO3ZKNoKsDCVz+CtxVWM89Bm27knGiM JeNVW718OHSgO7rErp9ESzQTB2uOilsfin92xeLjctupO/SQuZKU+CGAn667zw8GlDST VlEB7RL0vLokSLfsc7vKrK+EUAvsJ1FVCiuIFz1T3wbS+2AXYaqKTX2ZegSFq+WppHeO 7GYcbbUdsaKJq78zya/viAxipydIa4MOlw3MUf4+zHc0QzXvXm+QFNY8/5FOA5kaJb9Q 3j2w== X-Gm-Message-State: ALoCoQkczjpzCsZBP2OKTQroihocBkBLYni2SLyU+sJsz8yeTf0UAP+u1cMGnZZbSASHfKl7oRWR X-Received: by 10.180.7.226 with SMTP id m2mr706556wia.5.1419021330064; Fri, 19 Dec 2014 12:35:30 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.202 with SMTP id v10ls1107402lag.77.gmail; Fri, 19 Dec 2014 12:35:29 -0800 (PST) X-Received: by 10.152.228.164 with SMTP id sj4mr9354054lac.98.1419021329839; Fri, 19 Dec 2014 12:35:29 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id qh5si10977352lbb.103.2014.12.19.12.35.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 12:35:29 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id w7so1456768lbi.16 for ; Fri, 19 Dec 2014 12:35:29 -0800 (PST) X-Received: by 10.152.23.38 with SMTP id j6mr9705169laf.81.1419021329409; Fri, 19 Dec 2014 12:35:29 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp386296lbb; Fri, 19 Dec 2014 12:35:28 -0800 (PST) X-Received: by 10.140.32.68 with SMTP id g62mr16349026qgg.64.1419021327792; Fri, 19 Dec 2014 12:35:27 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id g33si12917058qgf.49.2014.12.19.12.35.26 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 19 Dec 2014 12:35:27 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y24Gj-00089I-5P; Fri, 19 Dec 2014 20:35:25 +0000 Received: from mail-qa0-f41.google.com ([209.85.216.41]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y24GN-00087H-Ah for lng-odp@lists.linaro.org; Fri, 19 Dec 2014 20:35:03 +0000 Received: by mail-qa0-f41.google.com with SMTP id s7so1099691qap.28 for ; Fri, 19 Dec 2014 12:34:58 -0800 (PST) X-Received: by 10.140.35.114 with SMTP id m105mr4972493qgm.79.1419021298155; Fri, 19 Dec 2014 12:34:58 -0800 (PST) Received: from localhost.localdomain ([98.221.136.245]) by mx.google.com with ESMTPSA id f65sm10334098qgf.41.2014.12.19.12.34.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Dec 2014 12:34:57 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 19 Dec 2014 15:34:48 -0500 Message-Id: <1419021288-29268-4-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1419021288-29268-1-git-send-email-mike.holmes@linaro.org> References: <1419021288-29268-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v2 3/3] api: schedule: remove odp_schedule_one X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 For the initial realease this api has been removed from the specification. Signed-off-by: Mike Holmes --- platform/linux-generic/include/api/odp_schedule.h | 25 ----------------------- platform/linux-generic/odp_schedule.c | 12 ----------- 2 files changed, 37 deletions(-) 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 a14de4f..f7c3588 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -379,18 +379,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) {