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

Commit eed25a38 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "PM / devfreq: Workaround cpufreq REMOVE_POLICY versus hotplug lock race"

parents 68ccfa71 b55a0de8
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -189,8 +189,10 @@ static int cpufreq_policy_notifier(struct notifier_block *nb,


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