From patchwork Wed Sep 13 11:00:10 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: 112433 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp803487qgf; Wed, 13 Sep 2017 04:00:30 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBJ6y8S5S1z0XaBS7pcavdDDUYC2pkHMPb3B99O/EAkZJXm9XG0x1nhKb/ut0nK6idYGlb0 X-Received: by 10.55.64.136 with SMTP id n130mr4299959qka.10.1505300430568; Wed, 13 Sep 2017 04:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505300430; cv=none; d=google.com; s=arc-20160816; b=VMN49WvohTW1izicA1c3e4tAUE3PlRd7njABSefomW7pGMN1SpzNv+Y3fAPFemIZ/s S8xtlZx2/73SY6a1QiYa2h5M9cafrY512iRvcE9rFPblkxWJeL91gsBUja15D5UhKv+6 IPjhGpZPgeChzdQe3UpP//1gyssRLio1hgMbrkzciQjAuWh4pQYXeKyK8VFzM2t57oAf v+RCW5b8tTB5BClnx3VVWKWAvVfwMkguzMtQk7ICIye22IeA2w7qXA39QBNsl30ahOMw ScGFor/3ODNBIihvy6c4ilet8s6IBQ8VMp0x75LGatEyqWjsMc1yFTfRvqOsEPrZZozS 2QfQ== 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=wP/ShYHIQSIHKlqsQ82hv8FoccqQR1EXyCwUh5BSzKQ=; b=iux6sb0J+6PQwpVllGYXR5D8N1j3PSravcTz/zA1iOvmYhCcAbWLx5yy2Uyvawvyah 2n0tV3ts/aQq59Bl03n7+LqA4KGAaz45kUrmV7ysiu+FZh8c/kzSHo2BfQFZxMOSfwPf LvPmUzREeJZxHmjYrl1aSo27v7N+o2u7nbdwUIrtzsK+sC/7aUnQTPUZCTwSg3NOx18w 44alTOb3uq+8FYUjq2xqJQX+0iC13DNXoKotUru4k8e0bz4xyJA/pRGxixmhSKbMjd4v 0JjdgCUA+FLsBQg+xN67R+wclSb2WW8w++LPGupldOKl+uSsyOgthrWBquWjgoDTicuK v/Dw== 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 h3si13763240qkc.496.2017.09.13.04.00.29; Wed, 13 Sep 2017 04:00:30 -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 7EBF360B4F; Wed, 13 Sep 2017 11:00:29 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 484CD60B59; Wed, 13 Sep 2017 11:00:25 +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 E5D1760BE3; Wed, 13 Sep 2017 11:00:21 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 7F05960B4E for ; Wed, 13 Sep 2017 11:00:20 +0000 (UTC) Received: from mxback2g.mail.yandex.net (mxback2g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:163]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 72DC46A82AF5 for ; Wed, 13 Sep 2017 14:00:19 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback2g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yoIXlLj7TZ-0JVm4eT6; Wed, 13 Sep 2017 14:00:19 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Dgs1Bh6pX6-0IcKMpVO; Wed, 13 Sep 2017 14:00:18 +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: Wed, 13 Sep 2017 14:00:10 +0300 Message-Id: <1505300412-17241-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505300412-17241-1-git-send-email-odpbot@yandex.ru> References: <1505300412-17241-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v10 2/4] 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..b42a0db14 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 to this call + * similar to calling these two calls in sequence. + * + * @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); + +/** * @} */