msm-vidc: fix final BW voting to ICC

Currently, Required BW is calculated in bytes per second but
when setting it to ICC, kbps_to_icc macro is applied to
calculated BW which again divides the value by 8 and resulting
into less final vote to icc.

Change-Id: I7a645478d05909308edea2170d7c5cb911cbf6f0
Signed-off-by: Dikshita Agarwal <dikshita@codeaurora.org>
This commit is contained in:
Dikshita Agarwal 2020-10-01 16:32:22 +05:30
parent 31f9744ab8
commit f033016e9e

View File

@ -888,7 +888,7 @@ static int __vote_bandwidth(struct bus_info *bus,
int rc = 0;
s_vpr_p(sid, "Voting bus %s to ab %llu kbps\n", bus->name, bw_kbps);
rc = icc_set_bw(bus->path, kbps_to_icc(bw_kbps), 0);
rc = icc_set_bw(bus->path, bw_kbps, 0);
if (rc)
s_vpr_e(sid, "Failed voting bus %s to ab %llu, rc=%d\n",
bus->name, bw_kbps, rc);