From patchwork Fri Dec 12 18:35:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 42197 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 42E0626C77 for ; Fri, 12 Dec 2014 18:35:45 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf1565290wib.2 for ; Fri, 12 Dec 2014 10:35:44 -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=CYqQv4CV9j2GyHogYAZxRwbMoZqHTCNQm/QCJf5Kx9I=; b=VvMR/o/9W8V9bWOVSfbcs0LjiYWFqgZQdWFPvsEDJI4OfuZlaou3NpHdiqVrTesx3/ hDcU2ljEKbtEWMlXHaD7rzj5xU+wOuaKhZME/D7Qk973TXC0zyHXsZg2DkG8WSJJ2cpF J2ZX4SYjQzMdcS+SK6rtG5IoOeK46RBLVF+J5NAGjmQHiXvWMJQCOXs9lvkSeMy8rLHU +ooT1VX/Htc5bSXKUYUsgMT+LBvPbj8T73D8lEkONaJ5c9DQC0s60WZfEXAJkzegD8tW 5XFsnfDckRazxcFsCXx996cJSawVjoYMrVXAgYYKUlFuvG3gsqDX0j9P3EZZEJfudQdI dayA== X-Gm-Message-State: ALoCoQnuLOWfCZ12GICaQXKqrIMaZhASZPAzAg0M3iRm7xlIQewdaerrn8c4zNAns5BOq0Lu7jwI X-Received: by 10.112.171.167 with SMTP id av7mr2832322lbc.2.1418409344528; Fri, 12 Dec 2014 10:35:44 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.67 with SMTP id 3ls493848las.61.gmail; Fri, 12 Dec 2014 10:35:44 -0800 (PST) X-Received: by 10.112.99.71 with SMTP id eo7mr2208729lbb.26.1418409344314; Fri, 12 Dec 2014 10:35:44 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id f4si2190496lam.117.2014.12.12.10.35.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Dec 2014 10:35:44 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id b6so6187911lbj.22 for ; Fri, 12 Dec 2014 10:35:44 -0800 (PST) X-Received: by 10.152.2.41 with SMTP id 9mr16461266lar.47.1418409344191; Fri, 12 Dec 2014 10:35:44 -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 ru5csp61173lbb; Fri, 12 Dec 2014 10:35:43 -0800 (PST) X-Received: by 10.140.38.170 with SMTP id t39mr31858657qgt.15.1418409342376; Fri, 12 Dec 2014 10:35:42 -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 t35si2368486qge.54.2014.12.12.10.35.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Dec 2014 10:35:42 -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 1XzV3y-0000ME-BJ; Fri, 12 Dec 2014 18:35:38 +0000 Received: from mail-qg0-f44.google.com ([209.85.192.44]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XzV3d-0000LJ-Ql for lng-odp@lists.linaro.org; Fri, 12 Dec 2014 18:35:17 +0000 Received: by mail-qg0-f44.google.com with SMTP id q107so3757367qgd.17 for ; Fri, 12 Dec 2014 10:35:12 -0800 (PST) X-Received: by 10.224.22.6 with SMTP id l6mr33624954qab.31.1418409312656; Fri, 12 Dec 2014 10:35:12 -0800 (PST) Received: from fedora1.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id b1sm2091690qac.24.2014.12.12.10.35.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Dec 2014 10:35:12 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 12 Dec 2014 13:35:04 -0500 Message-Id: <1418409304-1924-4-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1418409304-1924-1-git-send-email-mike.holmes@linaro.org> References: <1418409304-1924-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 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.177 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 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) {