mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
msm: vidc: Fix default_bus_vote
Update all struct values in default_bus_vote. Calculate bw only when function available. CRs-Fixed: 2494775 Change-Id: I70a137494c4469f928efe3ddf1f0297e2281c689 Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
This commit is contained in:
parent
5c854678be
commit
b00fc8327b
1 changed files with 5 additions and 1 deletions
|
|
@ -71,6 +71,9 @@ struct tzbsp_video_set_state_req {
|
|||
const struct msm_vidc_bus_data DEFAULT_BUS_VOTE = {
|
||||
.data = NULL,
|
||||
.data_count = 0,
|
||||
.total_bw_ddr = 0,
|
||||
.total_bw_llcc = 0,
|
||||
.calc_bw = NULL,
|
||||
};
|
||||
|
||||
const int max_packets = 1000;
|
||||
|
|
@ -1041,7 +1044,8 @@ no_data_count:
|
|||
device->bus_vote.data = new_data;
|
||||
device->bus_vote.data_count = num_data;
|
||||
|
||||
device->bus_vote.calc_bw(&device->bus_vote);
|
||||
if (device->bus_vote.calc_bw)
|
||||
device->bus_vote.calc_bw(&device->bus_vote);
|
||||
|
||||
venus_hfi_for_each_bus(device, bus) {
|
||||
if (bus && bus->client) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue