From patchwork Thu Jul 9 13:46:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 50965 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 93355228E5 for ; Thu, 9 Jul 2015 13:52:40 +0000 (UTC) Received: by lbnk3 with SMTP id k3sf13516809lbn.2 for ; Thu, 09 Jul 2015 06:52:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc: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=vse1tFnt/w1cV7hnsxMvFg+bqkG8VAUrReoFtttwHN8=; b=DaNCPPshL2xeiVq95fiymktOXQ5ySuPfiWB76qKrkYEcRu2UyfQyFR+qllbkmS7ipT iWkmVrjuVnTPpFH9fDjRGxrWhhjezjEJJAGRwz7bkJY0y2BXRuwW3dfJkISTuZZr2C5l slD6/JvmuL8NqYqruhEnCTLiBh+6/u+FUYdBH7kjhOrP2ipybK7Gtcaezeo/hICIOCLw X56N97xoQ0k5og3dqBYrnUV3XBesPi6Hs8c9HGHai/72NlU1Y5q/dYz7+tKWNMzbl+Lt Z51jMRQIRpmFvTQv9aeoNbxge5GxFk1mEq4TwXNfSpFKLj2kzZmA+MXsfZh0qbQ8bH9A 7Xjw== X-Gm-Message-State: ALoCoQnd1KRzF5O9DtHRtK5XAnIFYHKxpnrKPdBiMc7H2syldgkffkYQm/BdU/c+pfUkGIxdGYLf X-Received: by 10.194.209.180 with SMTP id mn20mr8006765wjc.5.1436449959588; Thu, 09 Jul 2015 06:52:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.129 with SMTP id m1ls999139laf.76.gmail; Thu, 09 Jul 2015 06:52:39 -0700 (PDT) X-Received: by 10.112.182.99 with SMTP id ed3mr15093181lbc.116.1436449959417; Thu, 09 Jul 2015 06:52:39 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id dz10si4549926lac.88.2015.07.09.06.52.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 06:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by laar3 with SMTP id r3so247215319laa.0 for ; Thu, 09 Jul 2015 06:52:39 -0700 (PDT) X-Received: by 10.152.88.77 with SMTP id be13mr14752095lab.112.1436449959202; Thu, 09 Jul 2015 06:52:39 -0700 (PDT) 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.108.230 with SMTP id hn6csp683424lbb; Thu, 9 Jul 2015 06:52:37 -0700 (PDT) X-Received: by 10.55.33.214 with SMTP id f83mr11816336qki.83.1436449956826; Thu, 09 Jul 2015 06:52:36 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 16si6652754qhr.49.2015.07.09.06.52.35; Thu, 09 Jul 2015 06:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 5BAE761FCB; Thu, 9 Jul 2015 13:52:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id F173161FCF; Thu, 9 Jul 2015 13:47:54 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9649361FE2; Thu, 9 Jul 2015 13:47:44 +0000 (UTC) Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by lists.linaro.org (Postfix) with ESMTPS id B2C5A61FBF for ; Thu, 9 Jul 2015 13:46:47 +0000 (UTC) Received: by wgxm20 with SMTP id m20so40756355wgx.3 for ; Thu, 09 Jul 2015 06:46:46 -0700 (PDT) X-Received: by 10.180.83.101 with SMTP id p5mr16172062wiy.52.1436449606709; Thu, 09 Jul 2015 06:46:46 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by smtp.gmail.com with ESMTPSA id df1sm8414627wib.12.2015.07.09.06.46.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 06:46:45 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 9 Jul 2015 16:46:22 +0300 Message-Id: <1436449585-23252-9-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436449585-23252-1-git-send-email-maxim.uvarov@linaro.org> References: <1436449585-23252-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Cc: Petri Savolainen Subject: [lng-odp] [PATCH 08/11] linux-generic: thread: implemented odp_thread_type X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@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.49 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 From: Petri Savolainen Signed-off-by: Petri Savolainen Reviewed-and-tested-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_thread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/linux-generic/odp_thread.c b/platform/linux-generic/odp_thread.c index 85ca047..42afc5f 100644 --- a/platform/linux-generic/odp_thread.c +++ b/platform/linux-generic/odp_thread.c @@ -183,6 +183,11 @@ int odp_thread_count(void) return thread_globals->num; } +odp_thread_type_t odp_thread_type(void) +{ + return this_thread->type; +} + int odp_cpu_id(void) { return this_thread->cpu;