From patchwork Mon Dec 8 13:58:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 42009 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DAFDF202E0 for ; Mon, 8 Dec 2014 13:59:43 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf1797306wiw.8 for ; Mon, 08 Dec 2014 05:59:43 -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=LtX2goK0OQaysIzf9U+76JpmG5jwUh5cJ3N9LCmLQS6T/xYC6W4NcXhseExYIcmeUN fhWj0nU0dG84ll77OcNJwntdlVVN9YkSrX6x7fGzC+M4N1N3EzW23cUGm9QqlUDFPle7 vRyMTYFQiTLfzDqJ3Re/3hpTotTBkDikUJ1MtkqW02PrXspYCqjnMTD/a72hmsFwwJn+ OmXGegDj2keBu1BWakqGAT0khNJufikfQsTgzisoo3htnvZsfVWyK1zwgvQgnoxpyFH2 stbFEE7I5MpJFTXdPcRYinryKZc6/n07oswD+8rDRd3xnQmwwXWEsQENrjVT9ljjsaXO WRRw== X-Gm-Message-State: ALoCoQlxJCJCNjWAgE+apfX6cKQCOPf89kvMlVumWt21g7xi3/qz1Pgmkdbyz/ksnNKYUtXWHYem X-Received: by 10.180.105.97 with SMTP id gl1mr3470813wib.7.1418047183153; Mon, 08 Dec 2014 05:59:43 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.226 with SMTP id kt2ls84668lac.52.gmail; Mon, 08 Dec 2014 05:59:43 -0800 (PST) X-Received: by 10.152.5.67 with SMTP id q3mr16303782laq.73.1418047182989; Mon, 08 Dec 2014 05:59:42 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id rh6si30748758lbb.129.2014.12.08.05.59.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 05:59:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so4040888lab.34 for ; Mon, 08 Dec 2014 05:59:42 -0800 (PST) X-Received: by 10.153.7.170 with SMTP id dd10mr16289660lad.44.1418047182905; Mon, 08 Dec 2014 05:59:42 -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.184.201 with SMTP id ew9csp606770lbc; Mon, 8 Dec 2014 05:59:42 -0800 (PST) X-Received: by 10.140.90.47 with SMTP id w44mr45706445qgd.4.1418047181602; Mon, 08 Dec 2014 05:59:41 -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 64si43402194qgh.48.2014.12.08.05.59.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 08 Dec 2014 05:59:41 -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 1Xxyqe-0002CR-6d; Mon, 08 Dec 2014 13:59:36 +0000 Received: from mail-la0-f48.google.com ([209.85.215.48]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XxyqT-0002Bj-Tk for lng-odp@lists.linaro.org; Mon, 08 Dec 2014 13:59:26 +0000 Received: by mail-la0-f48.google.com with SMTP id gf13so3916237lab.21 for ; Mon, 08 Dec 2014 05:59:20 -0800 (PST) X-Received: by 10.112.133.138 with SMTP id pc10mr16610770lbb.48.1418047159953; Mon, 08 Dec 2014 05:59:19 -0800 (PST) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id zs7sm7419670lbb.18.2014.12.08.05.59.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 05:59:19 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Mon, 8 Dec 2014 15:58:40 +0200 Message-Id: <1418047120-27159-2-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1418047120-27159-1-git-send-email-ciprian.barbu@linaro.org> References: <1418047120-27159-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 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.47 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) {