diff mbox

[API-NEXT,2/3] linux-generic: config: add implementation of odp_config_threads()

Message ID 1447206173-31970-2-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer Nov. 11, 2015, 1:42 a.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp/config.h | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp/config.h b/platform/linux-generic/include/odp/config.h
index ee23df3..58c55c0 100644
--- a/platform/linux-generic/include/odp/config.h
+++ b/platform/linux-generic/include/odp/config.h
@@ -23,6 +23,15 @@  extern "C" {
  */
 
 /**
+ * Maximum number of threads
+ */
+#define ODP_CONFIG_THREADS 128
+static inline int odp_config_threads(void)
+{
+	return ODP_CONFIG_THREADS;
+}
+
+/**
  * Maximum number of pools
  */
 #define ODP_CONFIG_POOLS 16