rockchip:midgard:mutex unlock pm.lock after kbase_pm_do_poweron when kbase_pm_resume...
authorxxm <xxm@rock-chips.com>
Thu, 8 May 2014 02:26:19 +0000 (10:26 +0800)
committerxxm <xxm@rock-chips.com>
Thu, 8 May 2014 02:26:19 +0000 (10:26 +0800)
drivers/gpu/arm/midgard/mali_kbase_pm.c

index 212221f94fda97cfcd24da2e58d91bd961e8bd00..a0cd00b251b402cb46b43bfa0db8895283346ab7 100755 (executable)
@@ -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);