From patchwork Thu Sep 14 15:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112568 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp849379qgf; Thu, 14 Sep 2017 08:07:55 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDyXqFrBSCA52R+0yZPrILm6k3OUeoWUqlriQt90n38X4l+flH2EydBczSMTdkvWqGevYLV X-Received: by 10.55.165.81 with SMTP id o78mr3171799qke.313.1505401675164; Thu, 14 Sep 2017 08:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505401675; cv=none; d=google.com; s=arc-20160816; b=exaQ4YnCnZlrqF2xwrsIvss0+/1B1JoVMBHap03QbdtQgl4lfZadO7eCH59vbF/WAU KBgnxyUyr2G/oRki7LhOf2DYUC0vwkI5ZZ/hXuvhINnrnhGk81HAHxALrfEK9UmicFa9 d8Xdld6b+cp2nGW3A3NmHGahC4JUQVZQtHeqpPmNRWQWX9wWlBFKZgsTxf69FZ7RXDCF JhqlPf/3On3nLipVE457ab2HzQArRbsIsd168jdUOdGz4784bVLl7aaYOfiHAl0FU+5U GKn+C6PYNpRlAqgReqqU2OGgMW+o309W3XwL65Y6uVk2Yy4p0S1kWx3eH9rLTwgqewrE BsqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=0wzwK8nMhCtDiwDWsX9aJg+Dbu9aIH93+jK0vHZRisE=; b=XyXzOLYzFN1NY4jDd571eE8zloyBJloOP8ONGuPaDHK0Ctr61hz4k61HRimG0cJCby aU9c5p+oShDdAjzI/KK40WXLY8hjyHHL2gXdIRVOSCsFu6Ag2U5abUDLQvqiaqd62/1l WVG3W5N18jN1IB9MKn/mjEZkADLixP+3w8+L7vatniIM17ev5PWqClw5xQoZxQ3NgZuW kvHaG/7eO8i+yEZPoEPGKhPLiQHYH7hhPeOPpKLtDKhe+i91g7CD6W/k1i0Xd9U7k5Jt NlkUwPqJUZ4mgpK/d0vkFfCd9phZVJ7ozaKmAFg2dGzZuRHtqcMx44X/g+bMNivACn5v e8MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g62si17585600qkc.217.2017.09.14.08.07.53; Thu, 14 Sep 2017 08:07:55 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 91A8D60B59; Thu, 14 Sep 2017 15:07:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6036160B4E; Thu, 14 Sep 2017 15:01:16 +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 1911C609A6; Thu, 14 Sep 2017 15:00:33 +0000 (UTC) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by lists.linaro.org (Postfix) with ESMTPS id A254A60900 for ; Thu, 14 Sep 2017 15:00:25 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 071CF5882BB1 for ; Thu, 14 Sep 2017 18:00:24 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id qP4Bg0PeDZ-0NnqwCbB; Thu, 14 Sep 2017 18:00:23 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id gNZkqRzw9k-0N7K46lu; Thu, 14 Sep 2017 18:00:23 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 14 Sep 2017 18:00:08 +0300 Message-Id: <1505401213-7265-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> References: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v11 7/12] api: schedule: add schedule order unlock lock api X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Balasubramanian Manoharan Adds odp_schedule_order_unlock_lock() api. This api combines schedule order unlock and lock into a single api for performance optimization in HW Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 160 (bala-manoharan:api_sched_order_lock) ** https://github.com/Linaro/odp/pull/160 ** Patch: https://github.com/Linaro/odp/pull/160.patch ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1 ** Merge commit sha: 438a3bab5df9c05dc06f0b4e4b22c0a7db0864fd **/ include/odp/api/spec/schedule.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index e2abf990b..fe2300db0 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -371,6 +371,27 @@ void odp_schedule_order_lock(uint32_t lock_index); void odp_schedule_order_unlock(uint32_t lock_index); /** + * Release existing ordered context lock and acquire a new lock + * + * This call is valid only when holding an ordered synchronization context. + * Release a previously locked ordered context lock and acquire a new ordered + * context lock. The operation is equivalent to application calling first + * odp_schedule_order_unlock(unlock_index) and then + * odp_schedule_order_lock(lock_index). The same constraints apply with this + * call as with those two. + * + * @param unlock_index Index of the acquired ordered lock in the current + * context to be released. + * @param lock_index Index of the ordered lock in the current context to be + * acquired. Must be in the range + * 0...odp_queue_lock_count() - 1. + * + * @see odp_schedule_order_lock(), odp_schedule_order_unlock() + * + */ +void odp_schedule_order_unlock_lock(uint32_t unlock_index, uint32_t lock_index); + +/** * @} */