diff mbox

[08/11] linux-generic: thread: implemented odp_thread_type

Message ID 1436449585-23252-9-git-send-email-maxim.uvarov@linaro.org
State Accepted
Commit 3f1a1c2528640e320c33d23a21e9a97df35e2ee2
Headers show

Commit Message

Maxim Uvarov July 9, 2015, 1:46 p.m. UTC
From: Petri Savolainen <petri.savolainen@nokia.com>

Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 platform/linux-generic/odp_thread.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

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;