summaryrefslogtreecommitdiff
path: root/include/linux/interconnect.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2020-05-18 14:25:32 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2020-05-29 10:15:12 +0530
commit0430b1d5704b0f0f1d237236dde9c143f8669e49 (patch)
treefedf4057b9559f56478c79910ad4ba0fbc8b0be6 /include/linux/interconnect.h
parent8b17f17a097bdbc9546f5fdde3098b5f21cbfbff (diff)
opp: Expose bandwidth information via debugfs
Expose the bandwidth information as well via debugfs. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Diffstat (limited to 'include/linux/interconnect.h')
-rw-r--r--include/linux/interconnect.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/interconnect.h b/include/linux/interconnect.h
index 34e97231a6ab..1ad09efd296e 100644
--- a/include/linux/interconnect.h
+++ b/include/linux/interconnect.h
@@ -32,6 +32,7 @@ struct icc_path *of_icc_get_by_index(struct device *dev, int idx);
void icc_put(struct icc_path *path);
int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw);
void icc_set_tag(struct icc_path *path, u32 tag);
+const char *icc_get_name(struct icc_path *path);
#else
@@ -65,6 +66,11 @@ static inline void icc_set_tag(struct icc_path *path, u32 tag)
{
}
+static inline const char *icc_get_name(struct icc_path *path)
+{
+ return NULL;
+}
+
#endif /* CONFIG_INTERCONNECT */
#endif /* __LINUX_INTERCONNECT_H */