[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1624122509-17508-1-git-send-email-okukatla@codeaurora.org>
Date: Sat, 19 Jun 2021 22:38:29 +0530
From: Odelu Kukatla <okukatla@...eaurora.org>
To: georgi.djakov@...aro.org, bjorn.andersson@...aro.org,
evgreen@...gle.com, Georgi Djakov <djakov@...nel.org>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: sboyd@...nel.org, mdtipton@...eaurora.org, sibis@...eaurora.org,
saravanak@...gle.com, okukatla@...eaurora.org,
seansw@....qualcomm.com, elder@...aro.org,
linux-arm-msm@...r.kernel.org, linux-arm-msm-owner@...r.kernel.org
Subject: [PATCH] interconnect: Aggregate bandwidth votes for unused nodes in sync_state()
When removing the initial bandwidth votes in sync_state(), make sure
to call the aggregate() function for nodes which don't have any
clients yet. aggregate_requests() does not invoke aggregate()
for unused nodes.
Signed-off-by: Odelu Kukatla <okukatla@...eaurora.org>
---
drivers/interconnect/core.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index 8a1e70e..1d9a00a 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -1106,7 +1106,16 @@ 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) {
- aggregate_requests(n);
+ if (hlist_empty(&n->req_list)) {
+ if (p->pre_aggregate)
+ p->pre_aggregate(n);
+
+ p->aggregate(n, 0, 0, 0, &n->avg_bw,
+ &n->peak_bw);
+ } else {
+ aggregate_requests(n);
+ }
+
p->set(n, n);
}
}
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists