diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-05-18 14:25:32 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-05-29 10:15:12 +0530 |
commit | 0430b1d5704b0f0f1d237236dde9c143f8669e49 (patch) | |
tree | fedf4057b9559f56478c79910ad4ba0fbc8b0be6 /include/linux/interconnect.h | |
parent | 8b17f17a097bdbc9546f5fdde3098b5f21cbfbff (diff) | |
download | lwn-0430b1d5704b0f0f1d237236dde9c143f8669e49.tar.gz lwn-0430b1d5704b0f0f1d237236dde9c143f8669e49.zip |
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.h | 6 |
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 */ |