Skip to content

Commit 456a9da

Browse files
Mike TiptonGeorgi Djakov
authored andcommitted
interconnect: Zero initial BW after sync-state
The initial BW values may be used by providers to enforce floors. Zero these values after sync-state so that providers know when to stop enforcing them. Fixes: b1d681d ("interconnect: Add sync state support") Signed-off-by: Mike Tipton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent e73f0f0 commit 456a9da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/interconnect/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,8 @@ void icc_sync_state(struct device *dev)
11061106
dev_dbg(p->dev, "interconnect provider is in synced state\n");
11071107
list_for_each_entry(n, &p->nodes, node_list) {
11081108
if (n->init_avg || n->init_peak) {
1109+
n->init_avg = 0;
1110+
n->init_peak = 0;
11091111
aggregate_requests(n);
11101112
p->set(n, n);
11111113
}

0 commit comments

Comments
 (0)