diff options
author | Kevin DuBois <kevindubois@google.com> | 2022-10-03 20:21:17 +0000 |
---|---|---|
committer | Kevin DuBois <kevindubois@google.com> | 2022-12-06 22:16:07 +0000 |
commit | b98ccad8117bba0642bcbb1fbad079b41a6091ee (patch) | |
tree | ecef08d405053083b2a98c3cfd0319ab08e55109 /mali_kbase/mali_kbase_core_linux.c | |
parent | 2da1751d98e423989aecd68568b4f331a877105a (diff) | |
download | gpu-b98ccad8117bba0642bcbb1fbad079b41a6091ee.tar.gz |
mali_kbase: upgrade pm lock to rt_mutex
Upgrade pm lock to rt_mutex. Userspace code, which may be of any
priority, can hold this lock through certain paths, which leads to PI
on RT tasks that also need this path.
Bug: 225338402
Test: boot to home, subjective improvement noted.
Change-Id: Ie8e5aff5d2f59a0274e4b19f534624bbaf50870e
Diffstat (limited to 'mali_kbase/mali_kbase_core_linux.c')
-rw-r--r-- | mali_kbase/mali_kbase_core_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mali_kbase/mali_kbase_core_linux.c b/mali_kbase/mali_kbase_core_linux.c index 714106e..228bc29 100644 --- a/mali_kbase/mali_kbase_core_linux.c +++ b/mali_kbase/mali_kbase_core_linux.c @@ -2634,7 +2634,7 @@ static ssize_t core_mask_store(struct device *dev, struct device_attribute *attr new_core_mask[1] = new_core_mask[2] = new_core_mask[0]; #endif - mutex_lock(&kbdev->pm.lock); + rt_mutex_lock(&kbdev->pm.lock); spin_lock_irqsave(&kbdev->hwaccess_lock, flags); shader_present = kbdev->gpu_props.props.raw_props.shader_present; @@ -2704,7 +2704,7 @@ static ssize_t core_mask_store(struct device *dev, struct device_attribute *attr unlock: spin_unlock_irqrestore(&kbdev->hwaccess_lock, flags); - mutex_unlock(&kbdev->pm.lock); + rt_mutex_unlock(&kbdev->pm.lock); end: return err; } |