From patchwork Wed Sep 16 11:51:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 53731 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 12BDF22A0D for ; Wed, 16 Sep 2015 11:54:16 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf68319129lbc.1 for ; Wed, 16 Sep 2015 04:54:15 -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=LTBWA1oXimQP58M5hCR0knpfZ/HNaUK7I8l6ZusU0VrE2yAt5658/9jgtH0eP+ZFdY zQlcg2BysZ29gUjss5ikrC5XNlwm2qIFGaOyIjBKYWLF3u4DSLBqPBkTt4gqCKiIrAqK AszvW8XbRcviOMGQSiHk16SAoUCl0KLtEkKJ3y64ew0ZaZKD8kdJDINRibKY98AwWsC0 Mv/2CgP1cF9IPVP3VjeNzUf6jG72W06nNrLnqeCzV5SG6Dd72b8un6IPOtDsGk+xzcaU UzxhdP79QdGOEyeP1WwYtjufmunWGB2LQ5SWO8CVNE5/zk8KaWmmaPisEgmPpcNb1yst 2/AQ== X-Gm-Message-State: ALoCoQluDEJVdYfxGEYtP5NPZ0XMqn3oo1pecOala6KyG8Wk7Jz2gauJYUxjt434pULSC6dvSgy9 X-Received: by 10.112.170.67 with SMTP id ak3mr5325694lbc.6.1442404455022; Wed, 16 Sep 2015 04:54:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.193 with SMTP id 1ls941576law.30.gmail; Wed, 16 Sep 2015 04:54:14 -0700 (PDT) X-Received: by 10.112.11.163 with SMTP id r3mr28708927lbb.45.1442404454841; Wed, 16 Sep 2015 04:54:14 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id r3si17947852lbl.98.2015.09.16.04.54.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 04:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lamp12 with SMTP id p12so125830863lam.0 for ; Wed, 16 Sep 2015 04:54:14 -0700 (PDT) X-Received: by 10.152.5.133 with SMTP id s5mr28664346las.19.1442404454739; Wed, 16 Sep 2015 04:54:14 -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.59.35 with SMTP id w3csp2401036lbq; Wed, 16 Sep 2015 04:54:14 -0700 (PDT) X-Received: by 10.55.204.208 with SMTP id n77mr40812401qkl.46.1442404453898; Wed, 16 Sep 2015 04:54:13 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r143si21520150qha.31.2015.09.16.04.54.12; Wed, 16 Sep 2015 04:54:13 -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 770B862D48; Wed, 16 Sep 2015 11:54:12 +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_H2, 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 894F062D50; Wed, 16 Sep 2015 11:52:23 +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 2D26062D41; Wed, 16 Sep 2015 11:52:13 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by lists.linaro.org (Postfix) with ESMTPS id 9D52A62D27 for ; Wed, 16 Sep 2015 11:52:10 +0000 (UTC) Received: by oixx17 with SMTP id x17so122487940oix.0 for ; Wed, 16 Sep 2015 04:52:10 -0700 (PDT) X-Received: by 10.202.90.84 with SMTP id o81mr2042987oib.38.1442404330105; Wed, 16 Sep 2015 04:52:10 -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 fh3sm10912155obb.23.2015.09.16.04.52.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Sep 2015 04:52:09 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 16 Sep 2015 06:51:59 -0500 Message-Id: <1442404320-5130-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442404320-5130-1-git-send-email-bill.fischofer@linaro.org> References: <1442404320-5130-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 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.51 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);