diff options
author | Sidath Senanayake <sidaths@google.com> | 2019-05-06 12:21:44 +0200 |
---|---|---|
committer | Sidath Senanayake <sidaths@google.com> | 2019-05-06 12:21:44 +0200 |
commit | ac90f0dd5fbae0b94e9720203a8bb2e81fd4b679 (patch) | |
tree | b8939b75ce4e0f1e8ae07e36648edef7f3a3ce59 /mali_kbase/mali_kbase_gpu_memory_debugfs.c | |
parent | e972f6531ef8c9d01eae567f52db4f0fd37d1428 (diff) | |
download | gpu-ac90f0dd5fbae0b94e9720203a8bb2e81fd4b679.tar.gz |
Mali Bifrost DDK r18p0 KMD
Provenance:
ee36a6687 (collaborate/EAC/b_r18p0)
BX304L01B-BU-00000-r18p0-01rel0
BX304L06A-BU-00000-r18p0-01rel0
BX304X07X-BU-00000-r18p0-01rel0
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: Ie26cb00b475d697c2778306ac09c6a799201ac77
Diffstat (limited to 'mali_kbase/mali_kbase_gpu_memory_debugfs.c')
-rw-r--r-- | mali_kbase/mali_kbase_gpu_memory_debugfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mali_kbase/mali_kbase_gpu_memory_debugfs.c b/mali_kbase/mali_kbase_gpu_memory_debugfs.c index 514b065..616505c 100644 --- a/mali_kbase/mali_kbase_gpu_memory_debugfs.c +++ b/mali_kbase/mali_kbase_gpu_memory_debugfs.c @@ -1,6 +1,6 @@ /* * - * (C) COPYRIGHT 2012-2017 ARM Limited. All rights reserved. + * (C) COPYRIGHT 2012-2017, 2019 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software @@ -43,7 +43,7 @@ static int kbasep_gpu_memory_seq_show(struct seq_file *sfile, void *data) kbdev_list = kbase_dev_list_get(); list_for_each(entry, kbdev_list) { struct kbase_device *kbdev = NULL; - struct kbasep_kctx_list_element *element; + struct kbase_context *kctx; kbdev = list_entry(entry, struct kbase_device, entry); /* output the total memory usage and cap for this device */ @@ -51,13 +51,13 @@ static int kbasep_gpu_memory_seq_show(struct seq_file *sfile, void *data) kbdev->devname, atomic_read(&(kbdev->memdev.used_pages))); mutex_lock(&kbdev->kctx_list_lock); - list_for_each_entry(element, &kbdev->kctx_list, link) { + list_for_each_entry(kctx, &kbdev->kctx_list, kctx_list_link) { /* output the memory usage and cap for each kctx * opened on this device */ seq_printf(sfile, " %s-0x%p %10u\n", "kctx", - element->kctx, - atomic_read(&(element->kctx->used_pages))); + kctx, + atomic_read(&(kctx->used_pages))); } mutex_unlock(&kbdev->kctx_list_lock); } |