Browse Source

video: driver: adjust the residency print

Adjust the residency print to have more
closer integer value.

Change-Id: Idc9605bd6be8f65ab8ec7b61059660abbf2e85fb
Signed-off-by: Ankush Mitra <[email protected]>
Ankush Mitra 2 years ago
parent
commit
956eb82150
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver/vidc/src/resources.c

+ 1 - 1
driver/vidc/src/resources.c

@@ -1206,7 +1206,7 @@ static int print_residency_stats(struct msm_vidc_core *core, struct clock_info *
 	list_for_each_entry(residency, &cl->residency_list, list) {
 		d_vpr_hs("%s: %s clock rate [%d] total %lluus residency %u%%\n",
 			__func__, cl->name, residency->rate, residency->total_time_us,
-			(residency->total_time_us * 100 + total_time_us - 1) / total_time_us);
+			(residency->total_time_us * 100 + total_time_us / 2) / total_time_us);
 	}
 
 	return rc;