From patchwork Mon Dec 15 13:36:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 42260 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7DD8821772 for ; Mon, 15 Dec 2014 13:37:42 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id l18sf7213368wgh.10 for ; Mon, 15 Dec 2014 05:37:41 -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=G1zx6Uz6dW0DAoum+mYTHYgp406Z2bDdnuI5CE7zjMY=; b=Jhedu8cWNjp9x61sET28MZJOoXyBAppTq56j+fkqtsqNTtlbMFu43lvil1Wk3Rbhiq 5R7SMLbLSToxJC9xhyou2sI2kelVneTFzma8gjPHXinxgcBAbX9G2WpNuVQCAbzpLLWX eyUuZ9J0w3a0l091cVgZMaRxs8hdPg2Ef3iXFAR62c/cCwXlz2HtjvByuArGiW6irZvT rkf25JZtGDzo7v6+nuFv5aBbk5Mh6W2NRNmXIAuV/F5ymr0D0zWBuv6Iqg+tGYi/6YAm vlsW2mhNQgkg7cvwSlKaTH+K0WYDm8ufwZEPuy7UDXBErmiBHxi2cm7z9kg4NM/trsXd qx2w== X-Gm-Message-State: ALoCoQmuac+bgqNuL/Prl9RlZvOUZKV4Jq18xbFwHLU4OWRURuwI94zwnXvGbSgdI6CWmvSRXzad X-Received: by 10.112.147.195 with SMTP id tm3mr47366lbb.18.1418650661775; Mon, 15 Dec 2014 05:37:41 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.39 with SMTP id kz7ls527578lab.25.gmail; Mon, 15 Dec 2014 05:37:41 -0800 (PST) X-Received: by 10.112.219.37 with SMTP id pl5mr27483745lbc.25.1418650661636; Mon, 15 Dec 2014 05:37:41 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id kz1si10468468lbc.63.2014.12.15.05.37.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 05:37:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id gf13so9224674lab.21 for ; Mon, 15 Dec 2014 05:37:41 -0800 (PST) X-Received: by 10.112.235.137 with SMTP id um9mr10896681lbc.41.1418650661549; Mon, 15 Dec 2014 05:37:41 -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 ru5csp718619lbb; Mon, 15 Dec 2014 05:37:40 -0800 (PST) X-Received: by 10.224.2.66 with SMTP id 2mr53393516qai.35.1418650659984; Mon, 15 Dec 2014 05:37:39 -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 c9si10632154qci.18.2014.12.15.05.37.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 15 Dec 2014 05:37:39 -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 1Y0VqC-0007M9-W6; Mon, 15 Dec 2014 13:37:36 +0000 Received: from mail-la0-f43.google.com ([209.85.215.43]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0Vpn-0007L4-8M for lng-odp@lists.linaro.org; Mon, 15 Dec 2014 13:37:11 +0000 Received: by mail-la0-f43.google.com with SMTP id s18so9336503lam.2 for ; Mon, 15 Dec 2014 05:37:05 -0800 (PST) X-Received: by 10.112.171.136 with SMTP id au8mr30542486lbc.71.1418650625157; Mon, 15 Dec 2014 05:37:05 -0800 (PST) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id d5sm2694554laf.13.2014.12.15.05.37.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 05:37:04 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Mon, 15 Dec 2014 15:36:45 +0200 Message-Id: <1418650605-8410-3-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1418650605-8410-1-git-send-email-ciprian.barbu@linaro.org> References: <1418650605-8410-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 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.48 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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index c278094..e91f51b 100644 --- a/platform/linux-generic/odp_queue.c +++ b/platform/linux-generic/odp_queue.c @@ -145,6 +145,30 @@ 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; + + if (handle == ODP_QUEUE_INVALID) + ODP_ABORT("Ivalid queue handle\n"); + + 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; + + if (handle == ODP_QUEUE_INVALID) + ODP_ABORT("Ivalid queue handle\n"); + + 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) {