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

Commit 1cbfa3d2 authored by Qiwei Liu's avatar Qiwei Liu
Browse files

msm: vidc: correctly calculate core workload



When calculating core workload, should also consider
work_route of each instance to get correct workload.

Change-Id: I397c83d8998a9211a0c9f5892ca7a7e18d8e0ba1
CRs-Fixed: 2270532
Signed-off-by: default avatarQiwei Liu <qiweil@codeaurora.org>
parent 5ebcda44
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1463,7 +1463,8 @@ static u32 get_core_load(struct msm_vidc_core *core,
		}
		current_inst_mbs_per_sec = msm_comm_get_inst_load_per_core(inst,
				LOAD_CALC_NO_QUIRKS);
		load += current_inst_mbs_per_sec * cycles;
		load += current_inst_mbs_per_sec * cycles /
			inst->clk_data.work_route;
	}
	mutex_unlock(&core->lock);