OSDN Git Service

interconnect: qcom: osm-l3: Simplify osm_l3_set()
authorBjorn Andersson <quic_bjorande@quicinc.com>
Fri, 11 Nov 2022 03:25:09 +0000 (19:25 -0800)
committerGeorgi Djakov <djakov@kernel.org>
Mon, 14 Nov 2022 13:05:30 +0000 (15:05 +0200)
commitb6bcef163ae0c4329187eea8431a735a60b1d7bb
tree45321ede6ea2da92161afa21a5963365b82a8b93
parent9235253ec73dfd71cc83d154693476930fc8dd77
interconnect: qcom: osm-l3: Simplify osm_l3_set()

The aggregation over votes for all nodes in the provider will always
only find the bandwidth votes for the destination side of the path.
Further more, the average kBps value will always be 0.

Simplify the logic by directly looking at the destination node's peak
bandwidth request.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Tested-by: Steev Klimaszewski <steev@kali.org>
Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com>
Link: https://lore.kernel.org/r/20221111032515.3460-5-quic_bjorande@quicinc.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/osm-l3.c