Revert "sched/cpufreq/schedutil: Fix error path mutex unlock"
authorCosmin Tanislav <demonsingur@gmail.com>
Tue, 16 Apr 2024 17:59:51 +0000 (20:59 +0300)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:04 +0000 (20:24 +0300)
This reverts commit 423f2c97a25392635216d349b85a4c2440de3a45.

kernel/sched/cpufreq_schedutil.c

index 56f6d8f31bd44fb38e63dd55144a72e884b7b205..e761d7d9a019147920785877dc3cd79f79543f71 100644 (file)
@@ -733,9 +733,10 @@ fail:
 
 stop_kthread:
        sugov_kthread_stop(sg_policy);
-       mutex_unlock(&global_tunables_lock);
 
 free_sg_policy:
+       mutex_unlock(&global_tunables_lock);
+
        sugov_policy_free(sg_policy);
 
 disable_fast_switch: