From patchwork Thu Dec 18 13:35:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 42451 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 92EBA26C6B for ; Thu, 18 Dec 2014 13:35:57 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf707103wib.10 for ; Thu, 18 Dec 2014 05:35:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state: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=HJBT8NDnA4CXgDQvtmlBAt34zfJkdODi4NHT5weTqWQ=; b=nKDxxLMYM1Tkpljy4fyb+XQEhcapYcABQQKp6+t9hujnlwX8FnWr8pA3JUHQT8uNDR kbHLRksCNYpDkrvW6/TBlAsXwEZnuihxW8byFi1WaLY3AIg+UvmrPKdIY5ji7KDqiIj+ ac5vfSDAxnTHnfgKR2y75ol9AleJPS6m7CJpYfRT1M6G298Kd31xPlHRriixTq9tWOXZ jLt2lMIsOISH06MDAcc+nrCNglXDWGY2Em0ftmAgKuoEC6k+piyTWRCOypz7eQXTA1ZA 6eAbUTtwdC1SjEOVwpLlsM5paMUPMeTN/7Ddhzc2sndjVGHeXGGC4QjnSQkLCQro3qos 04CQ== X-Gm-Message-State: ALoCoQn1W0chKMtIL19Af32wOU5pxCUYoyU5lpF1xaidTKvaMq764uqRh+Y9TY+cu1s2JQNTjmGE X-Received: by 10.112.40.71 with SMTP id v7mr275632lbk.20.1418909756762; Thu, 18 Dec 2014 05:35:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.104 with SMTP id x8ls210190laj.4.gmail; Thu, 18 Dec 2014 05:35:55 -0800 (PST) X-Received: by 10.152.121.65 with SMTP id li1mr2272453lab.17.1418909755945; Thu, 18 Dec 2014 05:35:55 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id q2si6838858lbb.130.2014.12.18.05.35.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 05:35:55 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id s18so1001484lam.2 for ; Thu, 18 Dec 2014 05:35:55 -0800 (PST) X-Received: by 10.152.197.5 with SMTP id iq5mr2363096lac.6.1418909755814; Thu, 18 Dec 2014 05:35:55 -0800 (PST) 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.142.69 with SMTP id ru5csp1707623lbb; Thu, 18 Dec 2014 05:35:54 -0800 (PST) X-Received: by 10.140.95.225 with SMTP id i88mr3408071qge.2.1418909754205; Thu, 18 Dec 2014 05:35:54 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id z5si6385655qcq.7.2014.12.18.05.35.53 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 05:35:54 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y1bFA-00049s-3d; Thu, 18 Dec 2014 13:35:52 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y1bEt-000474-16 for lng-odp@lists.linaro.org; Thu, 18 Dec 2014 13:35:35 +0000 Received: by mail-lb0-f180.google.com with SMTP id l4so943019lbv.39 for ; Thu, 18 Dec 2014 05:35:29 -0800 (PST) X-Received: by 10.152.234.140 with SMTP id ue12mr2255207lac.78.1418909729459; Thu, 18 Dec 2014 05:35:29 -0800 (PST) Received: from robucws331.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id pn7sm456832lbb.6.2014.12.18.05.35.28 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 05:35:28 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Thu, 18 Dec 2014 15:35:18 +0200 Message-Id: <1418909718-6413-3-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1418909718-6413-1-git-send-email-ciprian.barbu@linaro.org> References: <1418909718-6413-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 2/2] platform: implement odp_queue_sched_prio and odp_queue_sched_group X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ciprian.barbu@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.43 as permitted sender) smtp.mail=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 Signed-off-by: Ciprian Barbu --- platform/linux-generic/odp_queue.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index c278094..a12690b 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -145,6 +145,24 @@ odp_schedule_sync_t odp_queue_sched_type(odp_queue_t handle) return queue->s.param.sched.sync; } +odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t handle) +{ + queue_entry_t *queue; + + queue = queue_to_qentry(handle); + + return queue->s.param.sched.prio; +} + +odp_schedule_group_t odp_queue_sched_group(odp_queue_t handle) +{ + queue_entry_t *queue; + + queue = queue_to_qentry(handle); + + return queue->s.param.sched.group; +} + odp_queue_t odp_queue_create(const char *name, odp_queue_type_t type, odp_queue_param_t *param) {