mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "soc: qcom: msm_perf: add null policy checks for cpufreq policy"
This commit is contained in:
commit
301179af27
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue