From patchwork Fri Sep 15 10:00:15 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: 112696 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp427627qgf; Fri, 15 Sep 2017 03:05:29 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCxpgvma02W4LGi0byli53fXEueDZ4V0QT7YRH1kL0NyZgzBaJHow4exGPWlZF9S91ARTB7 X-Received: by 10.200.24.214 with SMTP id o22mr34866776qtk.123.1505469929788; Fri, 15 Sep 2017 03:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505469929; cv=none; d=google.com; s=arc-20160816; b=rL1w0cFY4wwFbQzRpWo2lg7UQslqY/sx+B7ws1JOExkjzUuDiheNihXvJ7HOEXPwGe Q902tqZ3MIk1Wd6fZJMb2HkQQetsvcFpQnZRoR8PeDwEd7oXGETJtkRVfOFH/CJseLOd 1GjFHYfOkzKMjTxnFOW7QFEQxQcPmlH3l2PSQLFwzgrM6rxwQNMfFpaoAhCK166x+9Wv 9dsuzGvJ8xKg8S65xs5BsLFW8nBJBItOtMyQPpTp9RHnYoe6A+40pqBvkE4HAVv3OigQ dOITwlJ2zMvyU7ZRIcnPjzpGAvc2rG6VPRXD4dHF51PfKlvb3EUC4L5nViR79pMoI5y8 /tDQ== 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=kIQ7EPIZJweI0m+ZAKiB8Zyma2d6AT68+frFyrB0eKw=; b=eMknHYaysYAd5jOr36ET9ilt0dbeVXn1o1CrZJfZWoH6NBmX9zeL5+/iKDdWxJQrsa 5AltfnF1v8VgMo75p6ZBFEdDua2CKxkIvTVfbEUUzMb28g+SR1VgjRvf3DfS5fqDDkot n47lU+yrAoI+fO9MPJDZEb9UIxPttw6R8i8OrLWmTkamqLujrObbe1mK8DMJQURMtRur c50vyfEIPO7djefn3XV0r4Ws5TQwcy7ZPGa+jP+qVewYBax0clFcl6ZGrk39lHr/F7ZT FL2DPCCQiCGxnGpy2YZCJcmlqlyKBLqYPP4ckNmFHRCF2sHNg0HmH8J7L6ZG26Ayby8Z 6AUQ== 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 l65si548585qkf.163.2017.09.15.03.05.29; Fri, 15 Sep 2017 03:05:29 -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 64C3D60B59; Fri, 15 Sep 2017 10:05: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,RCVD_IN_MSPIKE_H3,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 54CAB60BFA; Fri, 15 Sep 2017 10:01:43 +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 56D61609AC; Fri, 15 Sep 2017 10:01:32 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 885B6609C9 for ; Fri, 15 Sep 2017 10:00:35 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 1742D5103C8D for ; Fri, 15 Sep 2017 13:00:33 +0300 (MSK) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [2a02:6b8:0:801::ac]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id qDvniqtn6H-0WqSebhU; Fri, 15 Sep 2017 13:00:32 +0300 Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id clr2IsS8eV-0WTaTfYH; Fri, 15 Sep 2017 13:00:32 +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 13:00:15 +0300 Message-Id: <1505469621-12939-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505469621-12939-1-git-send-email-odpbot@yandex.ru> References: <1505469621-12939-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v14 2/8] 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 removes support for nested ordered lock use-case changes function param signature from unsigned to uint32_t 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: 236aa5fbfddcbccd5bf62c87fea274b272bfec72 **/ include/odp/api/spec/schedule.h | 7 +++++-- include/odp/api/spec/schedule_types.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index 8244746d7..e2abf990b 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); /** * @} diff --git a/include/odp/api/spec/schedule_types.h b/include/odp/api/spec/schedule_types.h index 8a4e42c64..397f98fcd 100644 --- a/include/odp/api/spec/schedule_types.h +++ b/include/odp/api/spec/schedule_types.h @@ -146,7 +146,7 @@ typedef struct odp_schedule_param_t { /** Ordered lock count for this queue * * Default value is 0. */ - unsigned lock_count; + uint32_t lock_count; } odp_schedule_param_t; /**