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

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

Merge "cpufreq: flush queued work before freeing policy"

parents c3deb2dd 0f754133
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1568,8 +1568,10 @@ static int __cpufreq_remove_dev_finish(struct device *dev,
		list_del(&policy->policy_list);
		write_unlock_irqrestore(&cpufreq_driver_lock, flags);

		if (!cpufreq_suspended)
		if (!cpufreq_suspended) {
			flush_work(&policy->update);
			cpufreq_policy_free(policy);
		}
	} else if (has_target()) {
		ret = __cpufreq_governor(policy, CPUFREQ_GOV_START);
		if (!ret)