From patchwork Tue Dec 16 09:54:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 42310 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 42D2B26C87 for ; Tue, 16 Dec 2014 09:55:16 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf4696966wiv.5 for ; Tue, 16 Dec 2014 01:55:15 -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=+t4/oX3IS1cg3v1oNFjHwUXXbkIiBBH3DC05jza5AFc=; b=mHJ3wOb01SDQHwo1TiLjFoM41TH/1VVJRWkvAZxvdsYJm8SKLUCsKa1p0WvkHp77fX um49GOB9JaIrZaue8XEH5k+NwhWKqA8aNCdJcAGuBMj7jRee0OcJzko7ngCBK0Huj6AN N6RgnoNzhfeoK8cscxktK+LksXrLYiwu1o+Fk4czE7tyt75TGIhNR1d9R3z5Ov61Ksv2 3eqQC8uu5NGNOIROurnxzFnCynO4KrrVzUIdPNy4oKWxGaJvBTwdTgAmuFK2VKXFRW/B WncitX7rkfS0XBaZPL4th+/Rc6cccLkv69zjcdVLDtI8MXxlVFtevl4K6Tu+ZoC5E34F NmbQ== X-Gm-Message-State: ALoCoQnhBemlaLQOhtk29jsmOj6GqnFK1ZlHKHZAjOA4lx4THEeU7M4eGzPWeBZ2nGpx7Yhwj6QM X-Received: by 10.194.95.74 with SMTP id di10mr5477173wjb.0.1418723715557; Tue, 16 Dec 2014 01:55:15 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.101 with SMTP id 5ls395173lal.72.gmail; Tue, 16 Dec 2014 01:55:15 -0800 (PST) X-Received: by 10.152.5.67 with SMTP id q3mr34592111laq.73.1418723715393; Tue, 16 Dec 2014 01:55:15 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id jd6si359172lac.3.2014.12.16.01.55.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 01:55:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id w7so6377550lbi.30 for ; Tue, 16 Dec 2014 01:55:15 -0800 (PST) X-Received: by 10.112.159.129 with SMTP id xc1mr34842878lbb.24.1418723715308; Tue, 16 Dec 2014 01:55:15 -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 ru5csp982733lbb; Tue, 16 Dec 2014 01:55:14 -0800 (PST) X-Received: by 10.140.18.103 with SMTP id 94mr23949964qge.44.1418723713580; Tue, 16 Dec 2014 01:55:13 -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 lc2si290551qcb.42.2014.12.16.01.55.12 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Dec 2014 01:55:13 -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 1Y0oqV-0006vQ-Ch; Tue, 16 Dec 2014 09:55:11 +0000 Received: from mail-la0-f51.google.com ([209.85.215.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0oqL-0006s9-GR for lng-odp@lists.linaro.org; Tue, 16 Dec 2014 09:55:01 +0000 Received: by mail-la0-f51.google.com with SMTP id ms9so10927423lab.10 for ; Tue, 16 Dec 2014 01:54:55 -0800 (PST) X-Received: by 10.152.5.6 with SMTP id o6mr35048945lao.8.1418723695633; Tue, 16 Dec 2014 01:54:55 -0800 (PST) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id l9sm92457lae.0.2014.12.16.01.54.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Dec 2014 01:54:55 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org, petri.savolainen@nsn.com, ola.liljedahl@linaro.org Date: Tue, 16 Dec 2014 11:54:26 +0200 Message-Id: <1418723669-10161-2-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1418723669-10161-1-git-send-email-ciprian.barbu@linaro.org> References: <1418723669-10161-1-git-send-email-ciprian.barbu@linaro.org> Subject: [lng-odp] [RFC 1/4] api: queue: add 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.217.171 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/include/api/odp_queue.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/platform/linux-generic/include/api/odp_queue.h b/platform/linux-generic/include/api/odp_queue.h index b994c20..89bde9b 100644 --- a/platform/linux-generic/include/api/odp_queue.h +++ b/platform/linux-generic/include/api/odp_queue.h @@ -236,6 +236,24 @@ odp_queue_type_t odp_queue_type(odp_queue_t queue); odp_schedule_sync_t odp_queue_sched_type(odp_queue_t queue); /** + * Queue priority + * + * @param queue Queue handle + * + * @return Queue schedule priority + */ +odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t queue); + +/** + * Queue group + * + * @param queue Queue handle + * + * @return Queue schedule group + */ +odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue); + +/** * @} */