From patchwork Mon Jan 12 20:46:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 42972 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 CD4E020DE8 for ; Mon, 12 Jan 2015 20:46:41 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf7791739wib.2 for ; Mon, 12 Jan 2015 12:46:41 -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=GiTKKaR88S/uelwX8Dhwn8HWD/c2qLx8ToGiwhyMjrnqvmiG5r/cBqR1L01v9z+ltp nXeJ9jHH42S/q8IrDO3vyfKhBe3tge6mmReaJ3hB5RD48Tt9a/gANWquEhEuHR2F/JnA skVfBiTMaPq7o4JFGD2cM4m+bSAuWSRue/1qhOPUIj0KuqB577DzMGEMPmlS2j6xpkww o2Qq7jmTELyDZYts27ByovQJUFxw+BN9orNagTgCeufwUThvSoI9t4bzQvo586EVZ0L/ lX58bqC7GHNozhFr1I/sAUcXXuMzg8YzY6otSorYXC40SWvG3lHz6vWeLJ3Zg0F5BZcS qO4w== X-Gm-Message-State: ALoCoQl74asrjvm2XDJv0GTtiraMmQQQ4EaRz5LstuYMCwFgpn5OKskOzJ9T+9FIz5YABbPePfrP X-Received: by 10.112.37.72 with SMTP id w8mr1045953lbj.6.1421095600988; Mon, 12 Jan 2015 12:46:40 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.229 with SMTP id 5ls661371lap.55.gmail; Mon, 12 Jan 2015 12:46:40 -0800 (PST) X-Received: by 10.112.188.201 with SMTP id gc9mr39178441lbc.6.1421095600840; Mon, 12 Jan 2015 12:46:40 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id uk4si22366202lbb.68.2015.01.12.12.46.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 Jan 2015 12:46:40 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so19695564lbv.0 for ; Mon, 12 Jan 2015 12:46:40 -0800 (PST) X-Received: by 10.152.26.201 with SMTP id n9mr39274615lag.50.1421095600681; Mon, 12 Jan 2015 12:46:40 -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.9.200 with SMTP id c8csp1188774lbb; Mon, 12 Jan 2015 12:46:39 -0800 (PST) X-Received: by 10.224.93.6 with SMTP id t6mr52921149qam.93.1421095598868; Mon, 12 Jan 2015 12:46:38 -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 k1si24022473qce.32.2015.01.12.12.46.38 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 12 Jan 2015 12:46:38 -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 1YAlsi-0004CN-2i; Mon, 12 Jan 2015 20:46:36 +0000 Received: from mail-qa0-f42.google.com ([209.85.216.42]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YAlsU-00045S-6d for lng-odp@lists.linaro.org; Mon, 12 Jan 2015 20:46:22 +0000 Received: by mail-qa0-f42.google.com with SMTP id dc16so719767qab.1 for ; Mon, 12 Jan 2015 12:46:17 -0800 (PST) X-Received: by 10.140.85.100 with SMTP id m91mr49526736qgd.7.1421095576987; Mon, 12 Jan 2015 12:46:16 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id p7sm15795457qat.4.2015.01.12.12.46.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jan 2015 12:46:16 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 12 Jan 2015 15:46:07 -0500 Message-Id: <1421095567-31613-3-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1421095567-31613-1-git-send-email-mike.holmes@linaro.org> References: <1421095567-31613-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v3 2/2] 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.169 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) {