Skip to content

Commit b1910c6

Browse files
Matthias KaehlckeGeorgi Djakov
authored andcommitted
interconnect: Show bandwidth for disabled paths as zero in debugfs
For disabled paths the 'interconnect_summary' in debugfs currently shows the orginally requested bandwidths. This is confusing, since the bandwidth requests aren't active. Instead show the bandwidths for disabled paths/requests as zero. Signed-off-by: Matthias Kaehlcke <[email protected]> Reviewed-by: Evan Green <[email protected]> Link: https://lore.kernel.org/r/20200729104933.1.If8e80e4c0c7ddf99056f6e726e59505ed4e127f3@changeid Signed-off-by: Georgi Djakov <[email protected]>
1 parent f75aef3 commit b1910c6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/interconnect/core.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,18 @@ static int icc_summary_show(struct seq_file *s, void *data)
5555

5656
icc_summary_show_one(s, n);
5757
hlist_for_each_entry(r, &n->req_list, req_node) {
58+
u32 avg_bw = 0, peak_bw = 0;
59+
5860
if (!r->dev)
5961
continue;
6062

63+
if (r->enabled) {
64+
avg_bw = r->avg_bw;
65+
peak_bw = r->peak_bw;
66+
}
67+
6168
seq_printf(s, " %-27s %12u %12u %12u\n",
62-
dev_name(r->dev), r->tag, r->avg_bw,
63-
r->peak_bw);
69+
dev_name(r->dev), r->tag, avg_bw, peak_bw);
6470
}
6571
}
6672
}

0 commit comments

Comments
 (0)