summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_defs.h
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2021-09-16 22:10:06 -0700
committerWei Wang <wvw@google.com>2021-09-17 06:18:00 +0000
commitaec9b53c82d630542757cbbb7a86b89ac45d3a88 (patch)
tree3076b4ed92d230c2e54973b16e1a9279205e0e13 /mali_kbase/mali_kbase_defs.h
parent6a9213ba008e15edbb7fbb6f897e179f5cb4eb93 (diff)
downloadgpu-aec9b53c82d630542757cbbb7a86b89ac45d3a88.tar.gz
mali_kbase: change to use rt_mutex
In case of mmu_lock being hold by low prio tasks, we need use rt_mutex to fix the PI. Bug: 198085505 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I146b278171688d8733e372daac9bb0117d391554
Diffstat (limited to 'mali_kbase/mali_kbase_defs.h')
-rw-r--r--mali_kbase/mali_kbase_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mali_kbase/mali_kbase_defs.h b/mali_kbase/mali_kbase_defs.h
index 164dded..dbdd9ad 100644
--- a/mali_kbase/mali_kbase_defs.h
+++ b/mali_kbase/mali_kbase_defs.h
@@ -47,7 +47,7 @@
#include <linux/slab.h>
#include <linux/file.h>
#include <linux/sizes.h>
-
+#include <linux/rtmutex.h>
#if defined(CONFIG_SYNC)
#include <sync.h>
@@ -289,7 +289,7 @@ struct kbase_fault {
*/
struct kbase_mmu_table {
u64 *mmu_teardown_pages;
- struct mutex mmu_lock;
+ struct rt_mutex mmu_lock;
phys_addr_t pgd;
u8 group_id;
struct kbase_context *kctx;