From patchwork Sat Sep 12 04:10:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 53509 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 3B71F22B26 for ; Sat, 12 Sep 2015 04:13:02 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf25220629wic.1 for ; Fri, 11 Sep 2015 21:13:01 -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=IyGMQuI2MEPI2DBdwu32GQabAeCe9FaWSfjK5MMA6FwfXAMsRSgr7XlinpxSG2tyuc G57kpLecDEk/+YBNEwEf8pfuo6vfjJGPE4k1upXT8hbS2jEjpKNVbqEWXcl3INQRspNj OFphDGh3rYsE9OpI3uA+hzuQMOAEgGV5mzPrykUdIH5IFvRslWoUILpzvlvE1gIL7E8G GY0VZNZeq+6gaFTQ8OUZ4qxPpKgtZUhwbmeDKblN+w8zlpABsOkfakqgmDCM5M2sgMA0 m+jeURtQghBYkbfR7FfY9r5hfHXu/X2IQ1jIFaAMDWQ2PzCMfWALN8b7G05dFtlIxNAO oJLg== X-Gm-Message-State: ALoCoQl6JzIvkR+xoOme0brF5uYig7T46LRtapPj8WD/X0XQH7JaeB7js8kSOzvm6x/0srGwcsjE X-Received: by 10.112.63.165 with SMTP id h5mr581503lbs.18.1442031181533; Fri, 11 Sep 2015 21:13:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.202 with SMTP id g10ls214637laf.29.gmail; Fri, 11 Sep 2015 21:13:01 -0700 (PDT) X-Received: by 10.112.144.69 with SMTP id sk5mr2071644lbb.6.1442031181370; Fri, 11 Sep 2015 21:13:01 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id le1si2174722lab.32.2015.09.11.21.13.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 21:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lahg1 with SMTP id g1so28892483lah.1 for ; Fri, 11 Sep 2015 21:13:01 -0700 (PDT) X-Received: by 10.152.43.137 with SMTP id w9mr2112954lal.56.1442031181242; Fri, 11 Sep 2015 21:13:01 -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 w3csp27964lbq; Fri, 11 Sep 2015 21:13:00 -0700 (PDT) X-Received: by 10.140.25.146 with SMTP id 18mr3568647qgt.36.1442031180344; Fri, 11 Sep 2015 21:13:00 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l49si2958846qgd.66.2015.09.11.21.12.30; Fri, 11 Sep 2015 21:13:00 -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 1BAA161C6B; Sat, 12 Sep 2015 04:12:30 +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 D832C62C37; Sat, 12 Sep 2015 04:10:41 +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 2713162C2E; Sat, 12 Sep 2015 04:10:32 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by lists.linaro.org (Postfix) with ESMTPS id B8E9662C13 for ; Sat, 12 Sep 2015 04:10:29 +0000 (UTC) Received: by oiww128 with SMTP id w128so53093294oiw.2 for ; Fri, 11 Sep 2015 21:10:29 -0700 (PDT) X-Received: by 10.202.95.2 with SMTP id t2mr1763682oib.55.1442031029156; Fri, 11 Sep 2015 21:10:29 -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 m133sm1745821oif.8.2015.09.11.21.10.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Sep 2015 21:10:28 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 11 Sep 2015 23:10:19 -0500 Message-Id: <1442031020-1907-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442031020-1907-1-git-send-email-bill.fischofer@linaro.org> References: <1442031020-1907-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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.44 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);