From patchwork Sun Sep 6 02:50:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 53160 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 6E8CC20A78 for ; Sun, 6 Sep 2015 02:52:46 +0000 (UTC) Received: by lanb10 with SMTP id b10sf17527818lan.3 for ; Sat, 05 Sep 2015 19:52:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=R6KPyGjW/E/wFxzX1l1m8fR5iRuoly0PNmy6T+ZM2gE=; b=DckERW/LAcb+1xhFWiwj9wccqSY+YgYhDMOvJAvXCJN64NQFFCGhuaKjVoDRxXTyOj X90vjNMCSC52eo/1aQavEh/o5VU8DOJrM8lQ31nYRVmS5hQVygAI+7fPmwtWE36qbiYh VHIu0waPvAwx+6OndTKPQEkwAchYS9UBeP9icdk38lZn+GgodD9kbp2ct9FDiWhQCxpM 3J4qFVFSWopD7gBTQUas8wqNAKnEaNoKKGJLecDByePssUfNX2XiWPl7RWFv9siMbppH c8J2s7aUoPgLI89m6giV9SwJD92Cf9zl826GRTPR9uNRCuMlqJiDUJ/hmhioIhjCKvA+ ECWw== X-Gm-Message-State: ALoCoQlrCqrpo/NA8bJdIegleBHW/FIQEuZwL0qmoMEZ8K3Vm3icgMejkQxX7UMYWrbWGJtEnStb X-Received: by 10.180.87.199 with SMTP id ba7mr3159743wib.5.1441507965366; Sat, 05 Sep 2015 19:52:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.37 with SMTP id 5ls365396laz.24.gmail; Sat, 05 Sep 2015 19:52:45 -0700 (PDT) X-Received: by 10.112.89.230 with SMTP id br6mr10873530lbb.15.1441507965033; Sat, 05 Sep 2015 19:52:45 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id z10si6809680lae.0.2015.09.05.19.52.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Sep 2015 19:52:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by laeb10 with SMTP id b10so34212658lae.1 for ; Sat, 05 Sep 2015 19:52:44 -0700 (PDT) X-Received: by 10.152.18.133 with SMTP id w5mr729310lad.72.1441507964616; Sat, 05 Sep 2015 19:52:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp772271lbb; Sat, 5 Sep 2015 19:52:43 -0700 (PDT) X-Received: by 10.140.130.6 with SMTP id 6mr18310725qhc.32.1441507963498; Sat, 05 Sep 2015 19:52:43 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f35si9073458qga.81.2015.09.05.19.52.42; Sat, 05 Sep 2015 19:52:43 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 7668A61CA1; Sun, 6 Sep 2015 02:52:42 +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, 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 C36DE61D0A; Sun, 6 Sep 2015 02:50: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 33AFE61BAF; Sun, 6 Sep 2015 02:50:34 +0000 (UTC) Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by lists.linaro.org (Postfix) with ESMTPS id E5EBB61B22 for ; Sun, 6 Sep 2015 02:50:32 +0000 (UTC) Received: by oiev17 with SMTP id v17so29759899oie.1 for ; Sat, 05 Sep 2015 19:50:32 -0700 (PDT) X-Received: by 10.202.181.198 with SMTP id e189mr9128015oif.6.1441507832420; Sat, 05 Sep 2015 19:50:32 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id k187sm4558263oia.18.2015.09.05.19.50.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 05 Sep 2015 19:50:32 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 5 Sep 2015 21:50:23 -0500 Message-Id: <1441507824-16437-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441507824-16437-1-git-send-email-bill.fischofer@linaro.org> References: <1441507824-16437-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 4/5] api: schedule: remove odp_schedule_order_lock_init() API X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Remove deprecated API. This has been superseded by the lock_count parameter passed to odp_queue_create(). Signed-off-by: Bill Fischofer --- include/odp/api/schedule.h | 18 ------------------ test/validation/scheduler/scheduler.c | 6 ------ 2 files changed, 24 deletions(-) diff --git a/include/odp/api/schedule.h b/include/odp/api/schedule.h index b0b7425..11f85ad 100644 --- a/include/odp/api/schedule.h +++ b/include/odp/api/schedule.h @@ -297,24 +297,6 @@ int odp_schedule_group_thrmask(odp_schedule_group_t group, odp_thrmask_t *thrmask); /** - * Initialize ordered context lock - * - * Initialize an ordered queue context lock. The lock can be associated only - * with ordered queues and used only within an ordered synchronization context. - * - * @param lock Ordered context lock - * @param queue Ordered queue - * - * @retval 0 on success - * @retval <0 on failure - * - * @note At present a thread may only use a single ordered lock. Attempts to - * use multiple ordered locks within an order context are undefined. - */ -int odp_schedule_order_lock_init(odp_schedule_order_lock_t *lock, - odp_queue_t queue); - -/** * Acquire ordered context lock * * This call is valid only when holding an ordered synchronization context. The diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c index 1874889..8cde985 100644 --- a/test/validation/scheduler/scheduler.c +++ b/test/validation/scheduler/scheduler.c @@ -964,12 +964,6 @@ static int create_queues(void) qctx->ctx_handle = queue_ctx_buf; qctx->sequence = 0; qctx->lock_sequence = 0; - rc = odp_schedule_order_lock_init(&qctx->order_lock, q); - - if (rc != 0) { - printf("Ordered lock init failed\n"); - return -1; - } rc = odp_queue_context_set(q, qctx);