staging: android: ion: Remove system heap aliasing
Now that all clients have transitioned to using the correct system heap ID, remove the aliasing logic that reroutes allocations from ION_HEAP_SYSTEM to ION_SYSTEM_HEAP_ID. For now, print a warning if an allocation is directed towards ION_HEAP_SYSTEM to catch anyone who is still using ION_HEAP_SYSTEM. Change-Id: Ie4a7c6384806016cc62837b14f4bc8d05cd1549d Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
38b1718d28
commit
077fddb129
@ -14,7 +14,6 @@
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include "ion_trace.h"
|
||||
#include "ion_private.h"
|
||||
#define ION_SYSTEM_HEAP_ID BIT(25)
|
||||
|
||||
static atomic_long_t total_heap_bytes;
|
||||
|
||||
@ -141,17 +140,10 @@ struct ion_buffer *ion_buffer_alloc(struct ion_device *dev, size_t len,
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
/*
|
||||
* Temporarily reroute generic system heap allocations to the MSM system
|
||||
* heap. Once clients have stopped using the generic system heap ID, we
|
||||
* can remove this.
|
||||
*/
|
||||
if (heap_id_mask & ION_HEAP_SYSTEM) {
|
||||
get_task_comm(task_comm, current->group_leader);
|
||||
pr_warn_ratelimited("%s: Rerouting allocation from generic sys heap to msm sys heap for %s-%d\n",
|
||||
pr_warn_ratelimited("%s: Detected allocation from generic sys heap for task %s-%d\n",
|
||||
__func__, task_comm, current->tgid);
|
||||
heap_id_mask &= ~ION_HEAP_SYSTEM;
|
||||
heap_id_mask |= ION_SYSTEM_HEAP_ID;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user