diff --git a/mm/mm_heap/mm_initialize.c b/mm/mm_heap/mm_initialize.c index 86c13c5153..9ceb518346 100644 --- a/mm/mm_heap/mm_initialize.c +++ b/mm/mm_heap/mm_initialize.c @@ -325,7 +325,7 @@ mm_initialize_pool(FAR const char *name, if (init != NULL && init->poolsize != NULL && init->npools != 0) { - heap->mm_threshold = CONFIG_MM_HEAP_MEMPOOL_THRESHOLD; + heap->mm_threshold = init->threshold; heap->mm_mpool = mempool_multiple_init(name, init->poolsize, init->npools, (mempool_multiple_alloc_t)mempool_memalign, diff --git a/mm/tlsf/mm_tlsf.c b/mm/tlsf/mm_tlsf.c index 32e9aa14cb..444f9ad839 100644 --- a/mm/tlsf/mm_tlsf.c +++ b/mm/tlsf/mm_tlsf.c @@ -947,7 +947,7 @@ mm_initialize_pool(FAR const char *name, if (init != NULL && init->poolsize != NULL && init->npools != 0) { - heap->mm_threshold = CONFIG_MM_HEAP_MEMPOOL_THRESHOLD; + heap->mm_threshold = init->threshold; heap->mm_mpool = mempool_multiple_init(name, init->poolsize, init->npools, (mempool_multiple_alloc_t)mempool_memalign,