summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_gpu_memory_debugfs.c
diff options
context:
space:
mode:
authorSiddharth Kapoor <ksiddharth@google.com>2022-03-02 14:51:29 +0800
committerSiddharth Kapoor <ksiddharth@google.com>2022-03-02 14:51:29 +0800
commit88d7d984fed1c2a4358ce2bbc334e82d71e3a391 (patch)
tree18f20402a0ed15ae9fe62b29a9957922ebcc2ada /mali_kbase/mali_kbase_gpu_memory_debugfs.c
parent0207d6c3b7a2002f15c60d08617e956faf5ba90c (diff)
downloadgpu-88d7d984fed1c2a4358ce2bbc334e82d71e3a391.tar.gz
Mali Valhall Android DDK r36p0 KMD
Provenance: 9f72c118d9 (ipdelivery/EAC/v_r36p0) VX504X08X-BU-00000-r36p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r36p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r36p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r36p0-01eac0 - Valhall Android Renderscript AOSP parts Signed-off-by: Siddharth Kapoor <ksiddharth@google.com> Change-Id: I4a63b707fedc68d7b7d046596c7098da47a139cb
Diffstat (limited to 'mali_kbase/mali_kbase_gpu_memory_debugfs.c')
-rw-r--r--mali_kbase/mali_kbase_gpu_memory_debugfs.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/mali_kbase/mali_kbase_gpu_memory_debugfs.c b/mali_kbase/mali_kbase_gpu_memory_debugfs.c
index cb372ea..b02a32c 100644
--- a/mali_kbase/mali_kbase_gpu_memory_debugfs.c
+++ b/mali_kbase/mali_kbase_gpu_memory_debugfs.c
@@ -54,8 +54,8 @@ static int kbasep_gpu_memory_seq_show(struct seq_file *sfile, void *data)
mutex_lock(&kbdev->kctx_list_lock);
list_for_each_entry(kctx, &kbdev->kctx_list, kctx_list_link) {
/* output the memory usage and cap for each kctx
- * opened on this device
- */
+ * opened on this device
+ */
seq_printf(sfile, " %s-0x%pK %10u\n",
"kctx",
kctx,
@@ -88,18 +88,13 @@ static const struct file_operations kbasep_gpu_memory_debugfs_fops = {
*/
void kbasep_gpu_memory_debugfs_init(struct kbase_device *kbdev)
{
- debugfs_create_file("gpu_memory", S_IRUGO,
+ debugfs_create_file("gpu_memory", 0444,
kbdev->mali_debugfs_directory, NULL,
&kbasep_gpu_memory_debugfs_fops);
- return;
}
-
#else
/*
* Stub functions for when debugfs is disabled
*/
-void kbasep_gpu_memory_debugfs_init(struct kbase_device *kbdev)
-{
- return;
-}
+void kbasep_gpu_memory_debugfs_init(struct kbase_device *kbdev) {}
#endif