Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de2e7319 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "PM / devfreq: Workaround cpufreq REMOVE_POLICY versus hotplug lock race" into msm-4.9

parents 32029895 0f50e417
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -190,8 +190,10 @@ static int cpufreq_policy_notifier(struct notifier_block *nb,

	case CPUFREQ_REMOVE_POLICY:
		mutex_lock(&state_lock);
		if (state[policy->cpu]) {
			state[policy->cpu]->on = false;
			update_all_devfreqs();
		}
		mutex_unlock(&state_lock);
		break;
	}