projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f9adde
)
rockchip:midgard:mutex unlock pm.lock after kbase_pm_do_poweron when kbase_pm_resume...
author
xxm
<xxm@rock-chips.com>
Thu, 8 May 2014 02:26:19 +0000
(10:26 +0800)
committer
xxm
<xxm@rock-chips.com>
Thu, 8 May 2014 02:26:19 +0000
(10:26 +0800)
drivers/gpu/arm/midgard/mali_kbase_pm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/arm/midgard/mali_kbase_pm.c
b/drivers/gpu/arm/midgard/mali_kbase_pm.c
index 212221f94fda97cfcd24da2e58d91bd961e8bd00..a0cd00b251b402cb46b43bfa0db8895283346ab7 100755
(executable)
--- a/
drivers/gpu/arm/midgard/mali_kbase_pm.c
+++ b/
drivers/gpu/arm/midgard/mali_kbase_pm.c
@@
-427,10
+427,11
@@
void kbase_pm_resume(struct kbase_device *kbdev)
/* MUST happen before any pm_context_active calls occur */
mutex_lock(&kbdev->pm.lock);
kbdev->pm.suspending = MALI_FALSE;
- mutex_unlock(&kbdev->pm.lock);
kbase_pm_do_poweron(kbdev, MALI_TRUE);
+ mutex_unlock(&kbdev->pm.lock);
+
/* Restart PM Metric timer on resume */
kbasep_pm_metrics_init(kbdev);
kbasep_pm_record_gpu_idle(kbdev);