mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
ion: Remove ION_HEAP_FLAG_DEFER_FREE for dynamic carveout heaps
Dynamic carveout heaps can have their memory removed immediately after all of its memory is no longer in use. However, the deferred free mechanism that carveout heaps use can cause immediate removal of heap memory to fail. Thus, do not use the ION_HEAP_FLAG_DEFER_FREE flag for dynamic carveout heaps. Change-Id: I2e4edd130cad9f1361b88210e69cf24cb0f271bb Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
b38b5109bf
commit
979014b341
1 changed files with 2 additions and 1 deletions
|
|
@ -301,7 +301,8 @@ __ion_carveout_heap_create(struct ion_platform_heap *heap_data,
|
|||
carveout_heap->heap.ion_heap.buf_ops = msm_ion_dma_buf_ops;
|
||||
carveout_heap->heap.msm_heap_ops = &msm_carveout_heap_ops;
|
||||
carveout_heap->heap.ion_heap.type = ION_HEAP_TYPE_CARVEOUT;
|
||||
carveout_heap->heap.ion_heap.flags = ION_HEAP_FLAG_DEFER_FREE;
|
||||
if (!dynamic_heap)
|
||||
carveout_heap->heap.ion_heap.flags = ION_HEAP_FLAG_DEFER_FREE;
|
||||
|
||||
return &carveout_heap->heap.ion_heap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue