This patch refactors granule allocator to remove the 32 granules limitation with the help of a gran_range_s structure and related functions, see "mm_grantable.h" for details. Below are the major functions explaining how this works: - The gran_match() checks if a gran range all in the given state. it gives last mismatch position when fails free range matching. - The gran_search() tries to find the position of a free range. It leverages last mismatch position from gran_match() to speed up the search. range size handling is mainly in gran_match() and gran_set_(). Signed-off-by: Yanfeng Liu <yfliu2008@qq.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Make.defs | ||
| mm_gran.h | ||
| mm_granalloc.c | ||
| mm_grancritical.c | ||
| mm_granfree.c | ||
| mm_graninfo.c | ||
| mm_graninit.c | ||
| mm_granrelease.c | ||
| mm_granreserve.c | ||
| mm_grantable.c | ||
| mm_grantable.h | ||
| mm_pgalloc.c | ||