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

Commit d0b32d96 authored by Vikash Garodia's avatar Vikash Garodia
Browse files

msm: vidc: Fix load calculation for specific core



Existing api to calculate core load for a give core,
returns the load corresponding to all the instances
in the core list. With the fix, the load is calculated
for the requested core.

CRs-Fixed: 2012520
Change-Id: Ic5a81a7d78ff110e9e8bc7870df5e03bb79c2c31
Signed-off-by: default avatarVikash Garodia <vgarodia@codeaurora.org>
parent ed98af78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -831,7 +831,7 @@ static u32 get_core_load(struct msm_vidc_core *core,
	list_for_each_entry(inst, &core->instances, list) {
		u32 cycles, lp_cycles;

		if (!(inst->clk_data.core_id && core_id))
		if (!(inst->clk_data.core_id & core_id))
			continue;
		if (inst->session_type == MSM_VIDC_DECODER) {
			cycles = lp_cycles = inst->clk_data.entry->vpp_cycles;