aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wang <kevin.wang@arm.com>2017-12-06 15:25:04 +0800
committerYi He <yi.he@linaro.org>2017-12-11 15:17:40 +0800
commit63fd88635cc10caaa02fdccd3f52c9494487bdd2 (patch)
treef443f616a23b03fc02f0d7c362a7b973a8dbfca6
parent75f3d60e6b31544bb9b273364b2cce502262c1f8 (diff)
downloadodp-2.0.tar.gz
linux-gen: pool: modify CONFIG_POOL_CACHE_SIZE from 256 to 2552.0
CONFIG_POOL_CACHE_SIZE is used in pool_cache_t. In pool_cache_t, there is another variable "num" which type is uint32_t. So if set CONFIG_POOL_CACHE_SIZE to 256 here, the capacity of pool_cache_t is 1028B which will waste 60B in one cache line. So reduce it to 255. Signed-off-by: Kevin Wang <kevin.wang@arm.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com> Reviewed-by: Ola Liljedahl <ola.Liljedahl@arm.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Yi He <yi.he@linaro.org>
-rw-r--r--platform/linux-generic/include/odp_config_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h
index 9720581a3..3519cfc74 100644
--- a/platform/linux-generic/include/odp_config_internal.h
+++ b/platform/linux-generic/include/odp_config_internal.h
@@ -150,6 +150,6 @@
/*
* Maximum number of events in a thread local pool cache
*/
-#define CONFIG_POOL_CACHE_SIZE 256
+#define CONFIG_POOL_CACHE_SIZE 255
#endif