update or print the residency calc. only when high or stats logs are enabled Change-Id: Ie5e936a56865702417b4bb6a4657abf864510032 Signed-off-by: Ashish Patil <[email protected]>
@@ -1264,6 +1264,10 @@ static int update_residency_stats(
u64 cur_time_us = 0;
int rc = 0;
+ /* skip update if high or stats logs not enabled */
+ if(!(msm_vidc_debug & (VIDC_HIGH | VIDC_STAT)))
+ return 0;
+
if (!core || !cl) {
d_vpr_e("%s: invalid params\n", __func__);
return -EINVAL;
@@ -337,6 +337,10 @@ static int update_residency_stats(