Skip to content

Commit d3703b3

Browse files
author
Georgi Djakov
committed
interconnect: Aggregate before setting initial bandwidth
When setting the initial bandwidth, make sure to call the aggregate() function (if such is implemented for the current provider), to handle cases when data needs to be aggregated first. Fixes: b1d681d ("interconnect: Add sync state support") Acked-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 5be1805 commit d3703b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/interconnect/core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,9 @@ void icc_node_add(struct icc_node *node, struct icc_provider *provider)
971971
}
972972
node->avg_bw = node->init_avg;
973973
node->peak_bw = node->init_peak;
974+
if (provider->aggregate)
975+
provider->aggregate(node, 0, node->init_avg, node->init_peak,
976+
&node->avg_bw, &node->peak_bw);
974977
provider->set(node, node);
975978
node->avg_bw = 0;
976979
node->peak_bw = 0;

0 commit comments

Comments
 (0)