From patchwork Fri Sep 15 07:00:08 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: 112681 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp293399qgf; Fri, 15 Sep 2017 00:04:57 -0700 (PDT) X-Google-Smtp-Source: AOwi7QClG9tZolrmwdU5nQcuhq5tRsPr9/ZxbnueuSb+lTM10/ZFYzxcIMkVlGosNIjVLAT45lm8 X-Received: by 10.200.63.98 with SMTP id w31mr24330194qtk.174.1505459097797; Fri, 15 Sep 2017 00:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505459097; cv=none; d=google.com; s=arc-20160816; b=AY/AXA99eCnQHpXG2TYFkzzIvEEUQcXjmkn4v4cawcojSghpIrGMa841jrGNCPgA4X 66+qnftsNLUpeU0ey1Au0XzRT8pyobyot6LjHXNbHvbyHzKx8QaKc9CnRevf+SrO8TVp GY+eQwsU9d/ZzGuOKVLrRhTVHaFxEPSWK10PBvLMhIugXDBIZjlIMg65dZJgN3CFWx4e AHvrhmOgwI/q7SOBE/ns1nHGZREKxJpv5OxUmO1YBUCcMzK8XgtpxEoA7VEIMaMJzIDn eXzKtjfS00TitSioKbtkNOvVvZpqNr/22aRqgV5piSqnrX1kuu3END4gTpLhXoUZcWZF bb4A== 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=sisma6JcFvKhb5xbJzukdPF9beLzpr801bDu5MpATcA=; b=zMe9ir2DHwlyyd6520wtCPtCduPz7RMTMMT02mxKCDzjEfro9VrVJnt3wDfSr9Ttl8 0FcwxAajQUyZ5bhgQgrnHbzzTyMcjVmSEsdemsz/EPv8wuqQd1Xf0WEoUtvCWhJQBfeg PkH1SuUCtjFszdPxXr72SNIJVThQO44ANYCY+i/pxb6fGPiTwZJebjWCuDaGjwxvxLvQ R47Yk5MKYt3LZ6p9bLhi8cIPGvmdScdMUOCC1k3zCgWAk4UrmcDnREw1lS935qsrXIZS f46ktSUTKlH4X45AC8uN2UQfSbsoLjqQfb/26ya6Q7FVGA6mBA1/BLAV87BoygHx4ss5 KC6A== 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 p41si297102qtb.84.2017.09.15.00.04.57; Fri, 15 Sep 2017 00:04:57 -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 7625A609DB; Fri, 15 Sep 2017 07:04:57 +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 2A848609FF; Fri, 15 Sep 2017 07:01:09 +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 16C9A60924; Fri, 15 Sep 2017 07:00:41 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 3C862608DD for ; Fri, 15 Sep 2017 07:00:31 +0000 (UTC) Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward100p.mail.yandex.net (Yandex) with ESMTP id AFE6451028FB for ; Fri, 15 Sep 2017 10:00:29 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback18j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id QlsnF3NwyD-0TYOUnS1; Fri, 15 Sep 2017 10:00:29 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lLHR2ftQSF-0Tt8PAfn; Fri, 15 Sep 2017 10:00:29 +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 10:00:08 +0300 Message-Id: <1505458814-11509-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> References: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v12 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: 8654cc5ecbcd8f0299a0c56a1e2ff23ba87c1d67 **/ 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; /**