mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
mm: Remove mempoolinfo_task macro and use mallinfo_task directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
d920bfba10
commit
9f4da58c67
@@ -138,8 +138,6 @@ struct mempoolinfo_s
|
|||||||
unsigned long nwaiter; /* This is the number of waiter for mempool */
|
unsigned long nwaiter; /* This is the number of waiter for mempool */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define mempoolinfo_task mallinfo_task
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -268,7 +266,7 @@ int mempool_deinit(FAR struct mempool_s *pool);
|
|||||||
* Statistics of memory information based on dump.
|
* Statistics of memory information based on dump.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
struct mempoolinfo_task
|
struct mallinfo_task
|
||||||
mempool_info_task(FAR struct mempool_s *pool,
|
mempool_info_task(FAR struct mempool_s *pool,
|
||||||
FAR const struct mm_memdump_s *dump);
|
FAR const struct mm_memdump_s *dump);
|
||||||
|
|
||||||
@@ -518,7 +516,7 @@ mempool_multiple_mallinfo(FAR struct mempool_multiple_s *mpool);
|
|||||||
* Statistics of memory information based on dump.
|
* Statistics of memory information based on dump.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
struct mempoolinfo_task
|
struct mallinfo_task
|
||||||
mempool_multiple_info_task(FAR struct mempool_multiple_s *mpool,
|
mempool_multiple_info_task(FAR struct mempool_multiple_s *mpool,
|
||||||
FAR const struct mm_memdump_s *dump);
|
FAR const struct mm_memdump_s *dump);
|
||||||
|
|
||||||
|
|||||||
@@ -390,12 +390,12 @@ int mempool_info(FAR struct mempool_s *pool, FAR struct mempoolinfo_s *info)
|
|||||||
* Name: mempool_info_task
|
* Name: mempool_info_task
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
struct mempoolinfo_task
|
struct mallinfo_task
|
||||||
mempool_info_task(FAR struct mempool_s *pool,
|
mempool_info_task(FAR struct mempool_s *pool,
|
||||||
FAR const struct mm_memdump_s *dump)
|
FAR const struct mm_memdump_s *dump)
|
||||||
{
|
{
|
||||||
irqstate_t flags = spin_lock_irqsave(&pool->lock);
|
irqstate_t flags = spin_lock_irqsave(&pool->lock);
|
||||||
struct mempoolinfo_task info =
|
struct mallinfo_task info =
|
||||||
{
|
{
|
||||||
0, 0
|
0, 0
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -766,13 +766,13 @@ mempool_multiple_mallinfo(FAR struct mempool_multiple_s *mpool)
|
|||||||
* Name: mempool_multiple_info_task
|
* Name: mempool_multiple_info_task
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
struct mempoolinfo_task
|
struct mallinfo_task
|
||||||
mempool_multiple_info_task(FAR struct mempool_multiple_s *mpool,
|
mempool_multiple_info_task(FAR struct mempool_multiple_s *mpool,
|
||||||
FAR const struct mm_memdump_s *dump)
|
FAR const struct mm_memdump_s *dump)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct mempoolinfo_task info;
|
struct mallinfo_task info;
|
||||||
struct mempoolinfo_task ret =
|
struct mallinfo_task ret =
|
||||||
{
|
{
|
||||||
0, 0
|
0, 0
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user