mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
soc: qcom: msm_perf: fix error checks
in error handling path, remove qos request only if its active. Change-Id: I322764ce736b581ecabdd82cece83c3d6595e4c7 Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <bsrivenk@codeaurora.org>
This commit is contained in:
parent
c1d17bef32
commit
5954827649
1 changed files with 2 additions and 2 deletions
|
|
@ -106,12 +106,12 @@ static int freq_qos_request_init(void)
|
|||
cleanup:
|
||||
for_each_present_cpu(cpu) {
|
||||
req = &per_cpu(qos_req_min, cpu);
|
||||
if (req)
|
||||
if (req && freq_qos_request_active(req))
|
||||
freq_qos_remove_request(req);
|
||||
|
||||
|
||||
req = &per_cpu(qos_req_max, cpu);
|
||||
if (req)
|
||||
if (req && freq_qos_request_active(req))
|
||||
freq_qos_remove_request(req);
|
||||
|
||||
per_cpu(msm_perf_cpu_stats, cpu).min = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue