From patchwork Tue Sep 5 15:00:27 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: 111695 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp5602468ybm; Tue, 5 Sep 2017 08:07:21 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6911wmF+r3yaeUgAK1eG8TWQb77tOCaL58NaDaE0AFUY87D020Lalt8pLqOoWADQu24uk1 X-Received: by 10.55.78.17 with SMTP id c17mr5902249qkb.67.1504624041285; Tue, 05 Sep 2017 08:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504624041; cv=none; d=google.com; s=arc-20160816; b=yGkRG+WRl8FB17NiAZLRXABkmqp/k0nuVsf4r9er8Jj47+PiGvU5nNr3rnaojL4ABg p4/Fg9+J/wkLXBbLM1+tNt6NLpmnTxNclnSrpkpgJ3dn20n+7V3J8Qffm79d973JlfBC rbVX8JBqNTxuo9iCgdpOGypmq0S1sTr12zRHqMnRPVVZm15SQmFyIjpdBCPIzPAyrc87 pK79GPQVfZ3SxW4l42I1m/XU6tCLqDvf3hxFASvHptEOTiBVMvrGK3lTy/OmcjWIAHN1 CwlMBT24S4ZVU7TxW5SoWyeVN1wLbWtQJ7MTaqadjmFHoVP8ChMP3N8hOjHf8SGDWRkh TJMg== 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=7wd4+IZtCxOjgKGsEb+zXiD5puEtUvpZ1429mkXv1Xg=; b=SKRfRT0kAl4PJPjzxYi9GdQATXrgOJxhgLLX38SZWThVDTruyVesgOEFg9NC+NG6mI 6WmvE+lKZ27mQ+SEofiE6axPqQrbj7AivBX/CXDYu/blzwAy07JA11lvoNXIOE4Q1AZG wXnd5p/EcySTc0UcCJDNNEpMNXUI5xhewGuDL5nruk3jFMSc8bcXDe1qwsAm11yRQOXz pUB9h/209Infg0YCRQ13s2aHTOMneiZ1sQcKK+sWJvIRVU4T0eecl6EEyHqoswNV6wIS 5uSamLCx0YnAJCVi8Nd46Eodu0iYugSelnc7QjDVPpf02uIPzoo/QebXSpcK4c8DdGRF jVoA== 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 x129si578526qkc.526.2017.09.05.08.07.20; Tue, 05 Sep 2017 08:07:21 -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 CEF7061DE2; Tue, 5 Sep 2017 15:07:20 +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 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 830D961CBB; Tue, 5 Sep 2017 15:02:26 +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 9939C61BC6; Tue, 5 Sep 2017 15:02:13 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 608B061CBB for ; Tue, 5 Sep 2017 15:00:37 +0000 (UTC) Received: from mxback5j.mail.yandex.net (mxback5j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10e]) by forward102j.mail.yandex.net (Yandex) with ESMTP id CE4EC560222B for ; Tue, 5 Sep 2017 18:00:35 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback5j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id d6PN2iPTWt-0ZJCqBE5; Tue, 05 Sep 2017 18:00:35 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LWjBxinodf-0ZEaROWo; Tue, 05 Sep 2017 18:00:35 +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: Tue, 5 Sep 2017 18:00:27 +0300 Message-Id: <1504623628-29246-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504623628-29246-1-git-send-email-odpbot@yandex.ru> References: <1504623628-29246-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 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 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: 4eae04e80a634c17ac276bb06bce468cbe28cde0 ** Merge commit sha: 0fdc4843f1c46de41bffe74270ffe252bdce1521 **/ include/odp/api/spec/schedule.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index 8244746d..0997315e 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -368,6 +368,25 @@ 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 active. + * Results are undefined if this call is made when multiple ordered context + * locks are acquired in nested fashion. + * + * @param lock_index Index of the ordered lock in the current context to be + * acquired. Previously acquired ordered lock is released. + * 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); + +/** * @} */