From patchwork Mon Aug 28 13:00:18 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: 111157 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp4802186ybm; Mon, 28 Aug 2017 06:05:00 -0700 (PDT) X-Received: by 10.55.77.20 with SMTP id a20mr638348qkb.222.1503925500786; Mon, 28 Aug 2017 06:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503925500; cv=none; d=google.com; s=arc-20160816; b=yfUGVEv1LkFKREuggfAILBibXOr5lSwlnmDVL/hUL5q0pKnFfWPa120V8zHbhIzuY0 7W97S+IH/31X24obiIOyR/0CKv4Z9KbKgPLd+FedSkWw0PTDa1IGetjEWbsTeOojIUuo AFQMYdX0FN82690k4ELUEvUICNOOkqPgroZebHVDtKpiPLN873qcVR4Y3JIJwh8X1uhw n1n9riKmyNx2gbqsgfIpj90NOFiFuyO22h0kp5OVqY0m8kb/YVgKgHCachZa8icB9kIq g1grSUx0Agh26PT7wVHcIbs1/rIR7r36ADb+YJ3xgvT5jIEbrcdqWWVKKmBBjbO+gLdx 9FsQ== 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=fWlOR1IzGjhmEIRsPA9mdoGJQyxfyDlyaRK3bOz5Scg=; b=dD4H6RbnnCVhyrR6ymzPmLKECPmP5iLxV7K5cFPD7hI6WW9MpiHuwc7eH1i39avzQM v1Yvrw04GXGpfMFz90sW6WrqenVWTdN230LhlsVSTJBpCVX+pvGkkFuFmMPMY8vESYUY JKmia2xEb2KQ4xj8ndCsFGNh163wOYEaiqtt8gxO51YGHY9rV673AkgQmFlndY09SMgz B7qENRdrSt8sLqtcbbQAROnNqeWHZY0+SdhmhyG7aJWDyEGHLlaVhBSzTfqSMn/nuFxc tt4fb0hkEI/wNBIkWOSkPGeuGZYI/h45sv3VRzSUqeib8Or0ZlCes5Fu3QzDsofV6ePV KzGw== 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 e1si259679qkc.511.2017.08.28.06.05.00; Mon, 28 Aug 2017 06:05:00 -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 58F5A6094D; Mon, 28 Aug 2017 13:05:00 +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 45E7A60919; Mon, 28 Aug 2017 13:02:27 +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 D54A56097C; Mon, 28 Aug 2017 13:02:14 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 7D1536094D for ; Mon, 28 Aug 2017 13:00:53 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 62A8B1341562 for ; Mon, 28 Aug 2017 16:00:52 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HumdZlCW1s-0qVK3DpY; Mon, 28 Aug 2017 16:00:52 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id YUwz5caNS3-0qsuS922; Mon, 28 Aug 2017 16:00:52 +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: Mon, 28 Aug 2017 16:00:18 +0300 Message-Id: <1503925219-13793-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503925219-13793-1-git-send-email-odpbot@yandex.ru> References: <1503925219-13793-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 129 Subject: [lng-odp] [PATCH API-NEXT v2 1/2] 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 129 (bala-manoharan:api_sched_order_lock) ** https://github.com/Linaro/odp/pull/129 ** Patch: https://github.com/Linaro/odp/pull/129.patch ** Base sha: 859293ad9b3c862264bb0fbfe8e7037b5e04d084 ** Merge commit sha: 039de688a242ee44f5495e97b35637c173ef459f **/ include/odp/api/spec/schedule.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index 8244746d..c5d22148 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -368,6 +368,26 @@ void odp_schedule_order_lock(unsigned lock_index); void odp_schedule_order_unlock(unsigned lock_index); /** + * Release ordered context lock and acquires new lock + * + * This call is valid only when holding an ordered synchronization context. + * Release a previously locked ordered context lock and acquires + * a new ordered context lock. + * This call is valid only when there is a single ordered context lock and + * is invalid if there are nested ordered context lock. + * + * @param lock_index Index of the ordered lock in the current context to be + * acquired. Previously acquired ordered lock is released. + * Results are undefined if there is a nested ordered lock + * in the context. 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 lock_index); + +/** * @} */