From 63fd88635cc10caaa02fdccd3f52c9494487bdd2 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 6 Dec 2017 15:25:04 +0800 Subject: linux-gen: pool: modify CONFIG_POOL_CACHE_SIZE from 256 to 255 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 Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ola Liljedahl Reviewed-by: Bill Fischofer Signed-off-by: Yi He --- platform/linux-generic/include/odp_config_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3