From patchwork Fri Sep 15 07:00:09 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: 112680 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp292961qgf; Fri, 15 Sep 2017 00:04:25 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBw7/sXbeK9erfz8ePjhphchab3xMYJJTdhqEX60o+RyJKYt79Vo3brvN5d/PyHUv4Wh+OA X-Received: by 10.55.166.10 with SMTP id p10mr6059581qke.8.1505459064987; Fri, 15 Sep 2017 00:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505459064; cv=none; d=google.com; s=arc-20160816; b=KY4WzfA5zB/Snw4g3azDCWa+SHn62DXwP7/A4Oe4s8rBbWpZf6QJKnddIo57kS/JwO WXFRomWsbbSFipLsJF8jFQH2TSMg0YGCbufMxqwCp0T3mr6sfp/6IWXpgy7ewgGAq4uP O2sW8pM4QthB2BbIVQqe6PfStbw5oO6DjsBE4dZL7EtZ2Li/xefJWg03hRb14i7bWXKK JeHoFUTyzd5kp9pvamQS7zGUq7gBP2xkrQCRPVYa9y4TpPah2hmZkJ9nhbAa6kGVQk+e w0WATikE2U8iMTtV8yt5SEHoVKQn+0uU69CsI0D9KA57HZeHVO92H1HAqMKaudcw0bFg gHXQ== 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=pFGc/h/7G1a1hY2URsmkd4TCS3BvIFOhktPK0ZYajvA=; b=IHP0FgRDlLD4jsC8K52ZsudgPBmVjH7ur7sHGqXjVgxM9cBqC7+HGLTAGRM0TRwg4m 9FtkgJI3i58wmqrjsJXDYoDL34pbVOBXDRY/fxRuQQcNnjeOQIWebGkX51J5+m1+r5yk SuRbEHIhvrY57nLSdwmTL6oXWq2vM6JV0wL5B4rr8OBBrxf/mhsjIvgBJFn775X/qt35 umxblcimYHZ5wjeDAB2YIN3bdclRe+fL8080IlM/UJrkpEvIQU42KzbMqqVGWsrCfnw/ 3CtohiLoc/2i6yjInmVVzEHSo+ofpp3k59ORhMrvI0ht8m/2nR74vNBPuFt1WwTLs1hC 7FrA== 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 u79si295586qku.7.2017.09.15.00.04.24; Fri, 15 Sep 2017 00:04:24 -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 A29F460B4F; Fri, 15 Sep 2017 07:04:24 +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, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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 DAA2C609DB; Fri, 15 Sep 2017 07:01:01 +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 02EDB6097F; Fri, 15 Sep 2017 07:00:41 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id E504560924 for ; Fri, 15 Sep 2017 07:00:31 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 4E3F05D858D0 for ; Fri, 15 Sep 2017 10:00:30 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id DqO6HXnnrt-0UI0KRnO; Fri, 15 Sep 2017 10:00:30 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lLHR2ftQSF-0TtSr0VX; Fri, 15 Sep 2017 10:00:29 +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: Fri, 15 Sep 2017 10:00:09 +0300 Message-Id: <1505458814-11509-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> References: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v12 3/8] 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: 8654cc5ecbcd8f0299a0c56a1e2ff23ba87c1d67 **/ 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); + +/** * @} */