aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@linaro.org>2015-11-04 15:33:30 +0000
committerZoltan Kiss <zoltan.kiss@linaro.org>2015-11-04 15:33:30 +0000
commit8ec1dafd4bea92b1ea1718d0ebae61153107c03b (patch)
tree576c2414f45cdfbf52566e49a514ac44a32fd4c3 /platform/linux-dpdk
parent16213a2830d74383bff78beee34eb36745705388 (diff)
Port a4903e1f "api: thread: added thread count max"
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Diffstat (limited to 'platform/linux-dpdk')
-rw-r--r--platform/linux-dpdk/odp_thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/linux-dpdk/odp_thread.c b/platform/linux-dpdk/odp_thread.c
index fc4135a82..f2d0cab60 100644
--- a/platform/linux-dpdk/odp_thread.c
+++ b/platform/linux-dpdk/odp_thread.c
@@ -209,6 +209,11 @@ int odp_thread_count(void)
return thread_globals->num;
}
+int odp_thread_count_max(void)
+{
+ return _ODP_INTERNAL_MAX_THREADS;
+}
+
odp_thread_type_t odp_thread_type(void)
{
return this_thread->type;