Skip to content

Commit

Permalink
interconnect: Show bandwidth for disabled paths as zero in debugfs
Browse files Browse the repository at this point in the history
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 <mka@chromium.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Link: https://lore.kernel.org/r/20200729104933.1.If8e80e4c0c7ddf99056f6e726e59505ed4e127f3@changeid
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
  • Loading branch information
Matthias Kaehlcke authored and Georgi Djakov committed Sep 3, 2020
1 parent f75aef3 commit b1910c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions drivers/interconnect/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,18 @@ static int icc_summary_show(struct seq_file *s, void *data)

icc_summary_show_one(s, n);
hlist_for_each_entry(r, &n->req_list, req_node) {
u32 avg_bw = 0, peak_bw = 0;

if (!r->dev)
continue;

if (r->enabled) {
avg_bw = r->avg_bw;
peak_bw = r->peak_bw;
}

seq_printf(s, " %-27s %12u %12u %12u\n",
dev_name(r->dev), r->tag, r->avg_bw,
r->peak_bw);
dev_name(r->dev), r->tag, avg_bw, peak_bw);
}
}
}
Expand Down

0 comments on commit b1910c6

Please sign in to comment.