mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
ion: Allow the system heap to expose debug information
Allow the system heap to expose debug information about the pools through debugfs. Change-Id: Id11706648b32260f19dff8d3f5cced1733a05978 Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
016daf243e
commit
583ca0fad1
1 changed files with 3 additions and 3 deletions
|
|
@ -506,9 +506,8 @@ static struct ion_heap_ops system_heap_ops = {
|
|||
.shrink = ion_system_heap_shrink,
|
||||
};
|
||||
|
||||
static __maybe_unused int ion_system_heap_debug_show(struct ion_heap *heap,
|
||||
struct seq_file *s,
|
||||
void *unused)
|
||||
static int ion_system_heap_debug_show(struct ion_heap *heap,
|
||||
struct seq_file *s, void *unused)
|
||||
{
|
||||
struct ion_system_heap *sys_heap;
|
||||
bool use_seq = s;
|
||||
|
|
@ -711,6 +710,7 @@ struct ion_heap *ion_system_heap_create(struct ion_platform_heap *data)
|
|||
if (!heap)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
heap->heap.dev = data->priv;
|
||||
heap->heap.debug_show = ion_system_heap_debug_show;
|
||||
heap->heap.ion_heap.ops = &system_heap_ops;
|
||||
heap->heap.ion_heap.buf_ops = msm_ion_dma_buf_ops;
|
||||
heap->heap.ion_heap.type = ION_HEAP_TYPE_SYSTEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue