aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_config_internal.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2016-12-02 12:56:26 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-01-12 17:57:43 +0300
commit39acf771084aa4f16b60a6bdf9e5f3bed4f88cd9 (patch)
treeed7a1f380f96bd1c52ed22141dd5a61cbfc1c200 /platform/linux-generic/include/odp_config_internal.h
parent0d6d0923b2dd4d3097ea992af76408fd4281d84e (diff)
linux-gen: sched: add internal API for max number of ordered locks per queue
The number of supported ordered locks may vary between the scheduler implementations. Add an internal scheduler API call for fetching the maximum value from currently active scheduler. Add an internal definition CONFIG_QUEUE_MAX_ORD_LOCKS for the scheduler independent maximum value. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_config_internal.h')
-rw-r--r--platform/linux-generic/include/odp_config_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h
index 9401fa1a3..06550e6a1 100644
--- a/platform/linux-generic/include/odp_config_internal.h
+++ b/platform/linux-generic/include/odp_config_internal.h
@@ -22,6 +22,11 @@ extern "C" {
#define ODP_CONFIG_QUEUES 1024
/*
+ * Maximum number of ordered locks per queue
+ */
+#define CONFIG_QUEUE_MAX_ORD_LOCKS 4
+
+/*
* Maximum number of packet IO resources
*/
#define ODP_CONFIG_PKTIO_ENTRIES 64