From patchwork Tue Aug 25 00:14:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 52659 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id 7070F22DD4 for ; Tue, 25 Aug 2015 00:19:12 +0000 (UTC) Received: by wicul11 with SMTP id ul11sf32078516wic.1 for ; Mon, 24 Aug 2015 17:19:11 -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=AhCwSfcbhybZLfYIa60i1TrgLoXTqeJzLU7+/+40H2E=; b=dH+yURBgWrQe8QvRuR/E0h20q5tNxuceDCMlHwLmuzD0GApQdOLOcdiiwO5vjzH8Wq 3HYPIEHK014nkhZMO+naaAouwUjkPFUMiwhB+G7PhzEJ914O6Yh3BuSfu9xMrM/gehqh IIv6T2APbGgygFR4jqOxnx3ogSjlAyrVlFnhHZM6XdvjsFOoIpiBCb6fg+UOavcxpcbg q+GfZgHsHlzE2fwMO82+Br7pXK2nmOt07PgmsmPneSkrfwKbM8kONyh+we80tAI5PDNI 49w+v/dbnErbj4QqKiCGtv8XN9q6/gDbjW8W+3ztu/ZN++c6BUM4J8P+7yKklLKQMlLK zBSA== X-Gm-Message-State: ALoCoQnuFatRxZSksyaohtjW37qpyAaPPNQGEE8yWqMVIOEqluN8r0EiekRIkhEyag3Oca1B1lY8 X-Received: by 10.194.173.3 with SMTP id bg3mr7561245wjc.5.1440461951779; Mon, 24 Aug 2015 17:19:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.70 with SMTP id o6ls679950laj.2.gmail; Mon, 24 Aug 2015 17:19:11 -0700 (PDT) X-Received: by 10.112.199.66 with SMTP id ji2mr22821610lbc.1.1440461951607; Mon, 24 Aug 2015 17:19:11 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id wq7si14624462lbc.105.2015.08.24.17.19.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2015 17:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbtg9 with SMTP id tg9so90318247lbb.1 for ; Mon, 24 Aug 2015 17:19:11 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr23033753lac.106.1440461951337; Mon, 24 Aug 2015 17:19:11 -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.162.200 with SMTP id yc8csp2812580lbb; Mon, 24 Aug 2015 17:19:10 -0700 (PDT) X-Received: by 10.50.143.2 with SMTP id sa2mr16242343igb.72.1440461949782; Mon, 24 Aug 2015 17:19:09 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i8si8658824igi.79.2015.08.24.17.19.08; Mon, 24 Aug 2015 17:19:09 -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 AC18961F06; Tue, 25 Aug 2015 00:19:08 +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 23ACC61F28; Tue, 25 Aug 2015 00:15:02 +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 2D9C061F24; Tue, 25 Aug 2015 00:14:51 +0000 (UTC) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by lists.linaro.org (Postfix) with ESMTPS id DDEF561F11 for ; Tue, 25 Aug 2015 00:14:41 +0000 (UTC) Received: by obkg7 with SMTP id g7so128335363obk.3 for ; Mon, 24 Aug 2015 17:14:41 -0700 (PDT) X-Received: by 10.60.178.99 with SMTP id cx3mr24781413oec.50.1440461681415; Mon, 24 Aug 2015 17:14:41 -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 p10sm11084442oev.0.2015.08.24.17.14.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Aug 2015 17:14:41 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 24 Aug 2015 19:14:25 -0500 Message-Id: <1440461669-18578-8-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1440461669-18578-1-git-send-email-bill.fischofer@linaro.org> References: <1440461669-18578-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 07/11] validation: schedule: add param init calls to enable correct operation 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.217.181 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 Add calls to odp_pool_param_init() and odp_queue_param_init() to enable correct operation with scheduler groups. Signed-off-by: Bill Fischofer --- test/validation/scheduler/scheduler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c index 67a0782..afd505f 100644 --- a/test/validation/scheduler/scheduler.c +++ b/test/validation/scheduler/scheduler.c @@ -112,6 +112,8 @@ void scheduler_test_queue_destroy(void) ODP_SCHED_SYNC_ATOMIC, ODP_SCHED_SYNC_ORDERED}; + odp_queue_param_init(&qp); + odp_pool_param_init(¶ms); params.buf.size = 100; params.buf.align = 0; params.buf.num = 1; @@ -619,6 +621,7 @@ static int create_queues(void) for (i = 0; i < prios; i++) { odp_queue_param_t p; + odp_queue_param_init(&p); p.sched.prio = i; for (j = 0; j < QUEUES_PER_PRIO; j++) { @@ -667,6 +670,7 @@ int scheduler_suite_init(void) thread_args_t *args; odp_pool_param_t params; + odp_pool_param_init(¶ms); params.buf.size = BUF_SIZE; params.buf.align = 0; params.buf.num = MSG_POOL_SIZE / BUF_SIZE;