From patchwork Mon Dec 15 13:36:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 42259 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 8555521772 for ; Mon, 15 Dec 2014 13:37:36 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf3543048wiv.9 for ; Mon, 15 Dec 2014 05:37:35 -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=rli4ftB3Bux+ff4hkty4sAwjyqBHDjshZH5MEG21A4o=; b=cSMJyvloo+eoA/R8Ftof41IYXM23UnFQhaT9LmO3aH0jxF65zaxfRgjNsbwnPx5GHY 14OOe+jZzfP2krentk3iwnD6N1c07Y+g+vrgpyfp9/yzQpnv0L/m6RdiXET4fk0+EJOf pm6GeZdtWmc5DDnaEgmT/+gBCEu2AMS2SZLK8oLbgqNZThTrGi4077WlMYq4o8Pd2anK RuRSsytguf/XmLBeiFxRRAMNjNMkhSc1fC6l0fP8PJVtYTYhzjEeUJSHfzDnZziIt/AK zxOaXbJ3P6j4OeYleLEgMQFuRf3pa4631LENSRAb1mfRe/7lsXRfi/ISLrERSW0HF70v yJsw== X-Gm-Message-State: ALoCoQkinTe/TpjmVXYRtPvlnO/BgEgQjn679aVWazd7JFXjjSDNxVZD9CQEkMXhqIvgCTzYw4MC X-Received: by 10.194.92.34 with SMTP id cj2mr375150wjb.5.1418650655798; Mon, 15 Dec 2014 05:37:35 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.202 with SMTP id e10ls679452lae.86.gmail; Mon, 15 Dec 2014 05:37:35 -0800 (PST) X-Received: by 10.112.185.99 with SMTP id fb3mr3861654lbc.21.1418650655639; Mon, 15 Dec 2014 05:37:35 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id 8si10448366lao.84.2014.12.15.05.37.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 05:37:35 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id gd6so9548154lab.15 for ; Mon, 15 Dec 2014 05:37:35 -0800 (PST) X-Received: by 10.152.37.7 with SMTP id u7mr6458014laj.74.1418650655506; Mon, 15 Dec 2014 05:37:35 -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 ru5csp718594lbb; Mon, 15 Dec 2014 05:37:34 -0800 (PST) X-Received: by 10.140.109.74 with SMTP id k68mr19220215qgf.82.1418650653887; Mon, 15 Dec 2014 05:37:33 -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 p2si10520811qaa.129.2014.12.15.05.37.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 15 Dec 2014 05:37:33 -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 1Y0Vq7-0007Lm-KG; Mon, 15 Dec 2014 13:37:31 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y0Vpl-0007L3-UN for lng-odp@lists.linaro.org; Mon, 15 Dec 2014 13:37:10 +0000 Received: by mail-la0-f50.google.com with SMTP id pn19so9408022lab.37 for ; Mon, 15 Dec 2014 05:37:04 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr29874564lbo.32.1418650623855; Mon, 15 Dec 2014 05:37:03 -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.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 05:37:02 -0800 (PST) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Mon, 15 Dec 2014 15:36:44 +0200 Message-Id: <1418650605-8410-2-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 1/2] 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.215.42 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 b8ac4bb..3f3b2e9 100644 --- a/platform/linux-generic/include/api/odp_queue.h +++ b/platform/linux-generic/include/api/odp_queue.h @@ -222,6 +222,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); + +/** * @} */