qcacmn: Add reduction limit to qdf_flex_mem

Add the ability to prevent qdf_flex_mem_pool from freeing memory
segments unless there are more than some minimum number in the pool
already.

Change-Id: I20bde2ed629b97924ea71b4f7f46a2c1fc1bab28
CRs-Fixed: 2229511
这个提交包含在:
Dustin Brown
2018-04-17 15:37:03 -07:00
提交者 nshrivas
父节点 4f263a9a19
当前提交 03a7ac6e19
修改 5 个文件,包含 68 行新增6 行删除

查看文件

@@ -109,6 +109,9 @@ static inline void qdf_list_create(__qdf_list_t *list, uint32_t max_size)
#define qdf_list_for_each(list_ptr, cursor, node_field) \
__qdf_list_for_each(list_ptr, cursor, node_field)
#define qdf_list_for_each_del(list_ptr, cursor, next, node_field) \
__qdf_list_for_each_del(list_ptr, cursor, next, node_field)
/**
* qdf_init_list_head() - initialize list head
* @list_head: pointer to list head