summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorSanthosh Punugu <spunug@codeaurora.org>2016-10-27 15:12:42 +0530
committerSanthosh Punugu <spunug@codeaurora.org>2016-10-28 10:28:10 +0530
commit89462e23432d52a6e3ffd6b2fb3419742d01f5ea (patch)
treeefb97c985225e01c0cd4a1f4b369b94ed4a91e67 /lib/mpi/mpi-bit.c
parentbcd8ec9210c9048c14d934e16267ba79a894db09 (diff)
msm: kgsl: use seq_file for mem_entry debugfs
A process may have many kgsl mem entries in use. Outputing all of them as a single debugfs seq_file record takes twice as long as necessary because seq_file must retry higher order page allocations for the output buffer until it is large enough to hold all mem entries. Additionally, process_mem_print() currently holds the spinlock private->mem_lock during this process. This is too much time to disable interrupts, and prevents locking mutex in print_mem_entry. Change the kgsl_mem_entry debugfs functions to output one entry at a time. Then the seq_file only need to kmalloc one page regardless of the number of kgsl_mem_entries. CRs-Fixed: 1073673 Change-Id: I2907495b65e62d95a892741aed008048bb86aced Signed-off-by: Santhosh Punugu <spunug@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions