summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Tipton <mdtipton@codeaurora.org>2021-07-21 10:54:29 -0700
committerGeorgi Djakov <djakov@kernel.org>2021-07-22 12:21:39 +0300
commit456a9dace42ecfcec7ce6e17c18d1985d628dcd0 (patch)
tree187008ba947042ff681294fa235f2e15762ee992
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-stable-456a9dace42ecfcec7ce6e17c18d1985d628dcd0.tar.gz
linux-stable-456a9dace42ecfcec7ce6e17c18d1985d628dcd0.tar.bz2
linux-stable-456a9dace42ecfcec7ce6e17c18d1985d628dcd0.zip
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: b1d681d8d324 ("interconnect: Add sync state support") Signed-off-by: Mike Tipton <mdtipton@codeaurora.org> Link: https://lore.kernel.org/r/20210721175432.2119-2-mdtipton@codeaurora.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
-rw-r--r--drivers/interconnect/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index 8a1e70e00876..945121e18b5c 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -1106,6 +1106,8 @@ void icc_sync_state(struct device *dev)
dev_dbg(p->dev, "interconnect provider is in synced state\n");
list_for_each_entry(n, &p->nodes, node_list) {
if (n->init_avg || n->init_peak) {
+ n->init_avg = 0;
+ n->init_peak = 0;
aggregate_requests(n);
p->set(n, n);
}