mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
CPM/QE: use genalloc to manage CPM/QE muram
Use genalloc to manage CPM/QE muram instead of rheap. Signed-off-by: Zhao Qiang <[email protected]> Signed-off-by: Scott Wood <[email protected]>
This commit is contained in:
parent
b26981c8f7
commit
0e6e01ff69
4 changed files with 94 additions and 41 deletions
|
|
@ -576,7 +576,7 @@ unsigned long gen_pool_fixed_alloc(unsigned long *map, unsigned long size,
|
|||
fixed_data = data;
|
||||
order = pool->min_alloc_order;
|
||||
offset_bit = fixed_data->offset >> order;
|
||||
if (WARN_ON(fixed_data->offset & (1UL << order - 1)))
|
||||
if (WARN_ON(fixed_data->offset & ((1UL << order) - 1)))
|
||||
return size;
|
||||
|
||||
start_bit = bitmap_find_next_zero_area(map, size,
|
||||
|
|
|
|||
Loading…
Reference in a new issue