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

Commit f7979ae4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Allow max load check in other states too"

parents 3749d5b5 8e17631b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -5500,7 +5500,8 @@ static int msm_vidc_load_supported(struct msm_vidc_inst *inst)
		LOAD_CALC_IGNORE_THUMBNAIL_LOAD |
		LOAD_CALC_IGNORE_THUMBNAIL_LOAD |
		LOAD_CALC_IGNORE_NON_REALTIME_LOAD;
		LOAD_CALC_IGNORE_NON_REALTIME_LOAD;


	if (inst->state == MSM_VIDC_OPEN_DONE) {
	if (inst->state >= MSM_VIDC_OPEN_DONE &&
		inst->state <= MSM_VIDC_STOP_DONE) {
		max_load_adj = inst->core->resources.max_load;
		max_load_adj = inst->core->resources.max_load;
		num_mbs_per_sec = msm_comm_get_load(inst->core,
		num_mbs_per_sec = msm_comm_get_load(inst->core,
					MSM_VIDC_DECODER, quirks);
					MSM_VIDC_DECODER, quirks);