mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "msm: cvp: Avoid racing in session deletion and use"
This commit is contained in:
commit
c7abf2c0ee
1 changed files with 3 additions and 0 deletions
|
|
@ -758,6 +758,7 @@ static void aggregate_power_update(struct msm_cvp_core *core,
|
|||
core->dyn_clk.sum_fps[HFI_HW_OD] = 0;
|
||||
core->dyn_clk.sum_fps[HFI_HW_ICA] = 0;
|
||||
|
||||
mutex_lock(&core->lock);
|
||||
list_for_each_entry(inst, &core->instances, list) {
|
||||
if (inst->state == MSM_CVP_CORE_INVALID ||
|
||||
inst->state == MSM_CVP_CORE_UNINIT ||
|
||||
|
|
@ -828,6 +829,8 @@ static void aggregate_power_update(struct msm_cvp_core *core,
|
|||
core->dyn_clk.sum_fps[HFI_HW_ICA]);
|
||||
}
|
||||
|
||||
mutex_unlock(&core->lock);
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
fdu_sum[i] = max_3(fdu_sum[i], od_sum[i], mpu_sum[i]);
|
||||
fdu_sum[i] = max_3(fdu_sum[i], ica_sum[i], fw_sum[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue