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

Commit 301179af authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: msm_perf: add null policy checks for cpufreq policy"

parents 3a52cb3e b5fbcbb9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -482,6 +482,8 @@ static int __init msm_performance_init(void)
		per_cpu(msm_perf_cpu_stats, cpu).max = UINT_MAX;
		req = &per_cpu(qos_req_min, cpu);
		policy = cpufreq_cpu_get(cpu);
		if (!policy)
			continue;
		ret = freq_qos_add_request(&policy->constraints, req,
			FREQ_QOS_MIN, policy->min);
		if (ret < 0) {