From patchwork Thu Jul 30 10:53:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51690 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id BB89122E7D for ; Thu, 30 Jul 2015 10:57:01 +0000 (UTC) Received: by lafd3 with SMTP id d3sf12793488laf.1 for ; Thu, 30 Jul 2015 03:57:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to: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=fHLZ+3/tA+cU0gFoWkqz9MCCGj01VKljQcMjw8xrboo=; b=SkWafgwGjtfxoTYwPM3I052kQ46ZuN6C4772Cqd1QeeFLaMoOmvm0vc8q2xPND+Bsf pcWnYpbiavUWC0aXtzE1AU2udmCwAKm81qxNLo91C13x+t/JbUCHYx4XRLkcyg0Y9OQ4 PLDnTV+Srh4wLqu7+dm6qFu+S0Duu0cWXVHSUXJ6aOhEI9BKNY6ehjYte8Natjnv4Dki xiQhAK+UdPDXqMczIGd+7qL0qNgmbIsD6L6pVKQYjTgDAVPn124t4ZVsDXqD5lp7pEBj JNtU/q9x/04G/FEYLl4/tjiqCUNwWmVxVCcYSjDYBMHOIwigDiaOSUEMca4sjnIlHVWx PSSw== X-Gm-Message-State: ALoCoQnDUGGZKgO/yxO/6qlvfZ/IEwZBM6w/y/i917OtTJ6gH2jUD7ZyaLccc6k/21q0IgUH+bwy X-Received: by 10.112.160.39 with SMTP id xh7mr17730989lbb.22.1438253820724; Thu, 30 Jul 2015 03:57:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.195 with SMTP id o3ls167889laf.1.gmail; Thu, 30 Jul 2015 03:57:00 -0700 (PDT) X-Received: by 10.152.219.3 with SMTP id pk3mr43363082lac.114.1438253820289; Thu, 30 Jul 2015 03:57:00 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id w5si521376lal.105.2015.07.30.03.57.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 03:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by laah7 with SMTP id h7so22627715laa.0 for ; Thu, 30 Jul 2015 03:57:00 -0700 (PDT) X-Received: by 10.112.120.134 with SMTP id lc6mr43834707lbb.86.1438253819889; Thu, 30 Jul 2015 03:56:59 -0700 (PDT) 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.7.198 with SMTP id l6csp506552lba; Thu, 30 Jul 2015 03:56:59 -0700 (PDT) X-Received: by 10.140.134.147 with SMTP id 141mr4293517qhg.41.1438253818550; Thu, 30 Jul 2015 03:56:58 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b31si696247qkb.52.2015.07.30.03.56.49; Thu, 30 Jul 2015 03:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id D8F8061DC9; Thu, 30 Jul 2015 10:56:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 4DD3861DBB; Thu, 30 Jul 2015 10:54:18 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 31A4A61DA4; Thu, 30 Jul 2015 10:54:09 +0000 (UTC) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by lists.linaro.org (Postfix) with ESMTPS id 0896761D84 for ; Thu, 30 Jul 2015 10:53:41 +0000 (UTC) Received: by padck2 with SMTP id ck2so21876563pad.0 for ; Thu, 30 Jul 2015 03:53:40 -0700 (PDT) X-Received: by 10.66.248.9 with SMTP id yi9mr104096574pac.149.1438253620385; Thu, 30 Jul 2015 03:53:40 -0700 (PDT) Received: from localhost.localdomain (205.158.164.101.ptr.us.xo.net. [205.158.164.101]) by smtp.gmail.com with ESMTPSA id mk6sm1560817pab.9.2015.07.30.03.53.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jul 2015 03:53:39 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 30 Jul 2015 03:53:25 -0700 Message-Id: <1438253605-24259-6-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1438253605-24259-1-git-send-email-bill.fischofer@linaro.org> References: <1438253605-24259-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 5/5] api: schedule: revised definition of odp_schedule_release_ordered X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@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.215.46 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 Signed-off-by: Bill Fischofer --- include/odp/api/schedule.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/include/odp/api/schedule.h b/include/odp/api/schedule.h index 95fc8df..0c3d8ba 100644 --- a/include/odp/api/schedule.h +++ b/include/odp/api/schedule.h @@ -147,21 +147,23 @@ void odp_schedule_resume(void); void odp_schedule_release_atomic(void); /** - * Release the current ordered context + * Release the ordered context associated with an event * - * This call is valid only for source queues with ordered synchronization. It - * hints the scheduler that the user has done all enqueues that need to maintain - * event order in the current ordered context. The scheduler is allowed to - * release the ordered context of this thread and avoid reordering any following - * enqueues. However, the context may be still held until the next - * odp_schedule() or odp_schedule_multi() call - this call allows but does not - * force the scheduler to release the context early. + * This call tells the scheduler that order no longer needs to be maintained + * for the specified event. This call is needed if, for example, the caller + * will free or otherwise dispose of an event that came from an ordered queue + * without enqueuing it to another queue. This call does not effect the + * ordering associated with any other event held by the caller. * * Early ordered context release may increase parallelism and thus system - * performance, since scheduler may start reordering events sooner than the next - * schedule call. + * performance, since scheduler may start reordering events sooner than the + * next schedule call. + * + * @param ev The event to be released from order preservation. If the + * specified event did not originate from an ordered queue + * this call does nothing. */ -void odp_schedule_release_ordered(void); +void odp_schedule_release_ordered(odp_event_t ev); /** * Prefetch events for next schedule call