Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
956eb82150
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;