add mm_uninitialize empty implementation for sim

Signed-off-by: lijianjun <lijianjun@xiaomi.com>
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
lijianjun 2024-06-11 16:55:45 +08:00 committed by Xiang Xiao
parent b444bf2e6a
commit 9762ddee6e
1 changed files with 25 additions and 0 deletions

View File

@ -231,6 +231,31 @@ struct mm_heap_s *mm_initialize(const char *name,
return heap;
}
/****************************************************************************
* Name: mm_uninitialize
*
* Description:
* Uninitialize the selected heap data structures
*
* Input Parameters:
* heap - The selected heap
*
* Returned Value:
* None
*
* Assumptions:
*
****************************************************************************/
void mm_uninitialize(struct mm_heap_s *heap)
{
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMINFO)
procfs_unregister_meminfo(&heap->mm_procfs);
#endif
mm_free_delaylist(heap);
host_free(heap);
}
/****************************************************************************
* Name: mm_addregion
*