From patchwork Tue Sep 12 16:00:14 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: 112327 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp5391026qgf; Tue, 12 Sep 2017 09:03:49 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDtlqBBtUhEJtpjW4WrOHrQmGaMVhnOaaOYiy/gJG4VTDysgRdJ8v8JvJBfa3AStHW9Jl+/ X-Received: by 10.200.56.57 with SMTP id q54mr18705225qtb.310.1505232229057; Tue, 12 Sep 2017 09:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505232229; cv=none; d=google.com; s=arc-20160816; b=XM++ctP3kSRMNekLI0te2VA0mrneJrbRxgVUgHW0sEp3q0yKiNz9o6X2SD45fnac3c 3DmaC4vsl5uEOMSgXMzqKYJP2bP8/FmUIySn0vOhuq+ru6SjTf0oegulOk9M/fBb8G8M NiZMW4FJ8ppBu74mLVG3MutEPxf1pb5rgLrlKuW4ORZLqm47OY5nrU5Ewaq8F50JFZG2 U3EGeTxsWXChWpl9pU3E8p1EOh0x6oPRcW6RVxvBpkVf4ZfhgZdJAWKoH+vsGbHd6+Wl mHNk//3Rylb/1qCkpB7SN5P5p1h2Nr8jgP/eRD6fLMFLloNb9jig8Dnzo63PIhYQwyf5 JvkA== 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=IA/KuYDcUeyehU6hHKHUjsZ6S+tIvgITDjIbglhS/Oc=; b=uDz6OHDX3k0wwt2+5xWzDDZAYTUtDUDMVKQLaXZ3gXmcZX1zZlIps8Z56ma5/+lEpX eArmb9TSGJcnK5SnADgp+GnLopVmQQP1e6r4u0XPPJIp8sbFvrb6yfh6CElvBRWYqWNw 5MS3QQO4cwhg0J/U9HbLDpDrUqar/+GrLyU6dFDRX/MCCSnNwCXHaYsUkLmLPNnDHGM4 sICl/f3Sz3iOW0yhG4UDVa9WgbtD5SBgYc5hdmekKPLsWvPcDd8s8/tWQeHUad1ZMkzF Fpa9/TGDC3yorPmSMvM1HddU1zn+oKJ80AaeAfld1dYJp1jHLPBjsLuAAX2A6TbCatpo x33g== 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 g123si11873916qkd.167.2017.09.12.09.03.39; Tue, 12 Sep 2017 09:03:49 -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 12D4462C62; Tue, 12 Sep 2017 16:03:39 +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 E6E6762AE4; Tue, 12 Sep 2017 16:00:49 +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 0EDD760D92; Tue, 12 Sep 2017 16:00:28 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 03AEC60DB2 for ; Tue, 12 Sep 2017 16:00:21 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 5E41F40834F0 for ; Tue, 12 Sep 2017 19:00:19 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IDMaH25gqM-0JNOTGdN; Tue, 12 Sep 2017 19:00:19 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0WCrpZsC8T-0IHiAuoI; Tue, 12 Sep 2017 19: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: Tue, 12 Sep 2017 19:00:14 +0300 Message-Id: <1505232017-2279-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505232017-2279-1-git-send-email-odpbot@yandex.ru> References: <1505232017-2279-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v8 1/4] api: schedule: remove support for nested ordered lock 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 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: 6f2ac07d768416a9261170bb08c4ba53f6d63d4b **/ include/odp/api/spec/schedule.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index 8244746d..e2abf990 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -347,12 +347,15 @@ int odp_schedule_group_info(odp_schedule_group_t group, * be protected by its own ordered lock. This promotes maximum parallelism by * allowing order to maintained on a more granular basis. If an ordered lock * is used multiple times in the same ordered context results are undefined. + * Only one ordered lock can be active in an ordered context at any given time. + * Results are undefined when multiple ordered locks are acquired in nested + * fashion within the same ordered context. * * @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 */ -void odp_schedule_order_lock(unsigned lock_index); +void odp_schedule_order_lock(uint32_t lock_index); /** * Release ordered context lock @@ -365,7 +368,7 @@ void odp_schedule_order_lock(unsigned lock_index); * hold this lock. Must be in the range * 0..odp_queue_lock_count() - 1 */ -void odp_schedule_order_unlock(unsigned lock_index); +void odp_schedule_order_unlock(uint32_t lock_index); /** * @}