diff options
author | Georgi Djakov <georgi.djakov@linaro.org> | 2019-08-09 15:13:23 +0300 |
---|---|---|
committer | Georgi Djakov <georgi.djakov@linaro.org> | 2019-08-13 23:02:44 +0300 |
commit | 127ab2cc5f19692efe422935267b9db0845b2b04 (patch) | |
tree | 104e5154b6166e0c87251ab2ad9948154b809e38 /include/linux/interconnect.h | |
parent | d45331b00ddb179e291766617259261c112db872 (diff) | |
download | lwn-127ab2cc5f19692efe422935267b9db0845b2b04.tar.gz lwn-127ab2cc5f19692efe422935267b9db0845b2b04.zip |
interconnect: Add support for path tags
Consumers may have use cases with different bandwidth requirements based
on the system or driver state. The consumer driver can append a specific
tag to the path and pass this information to the interconnect platform
driver to do the aggregation based on this state.
Introduce icc_set_tag() function that will allow the consumers to append
an optional tag to each path. The aggregation of these tagged paths is
platform specific.
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Diffstat (limited to 'include/linux/interconnect.h')
-rw-r--r-- | include/linux/interconnect.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/interconnect.h b/include/linux/interconnect.h index dc25864755ba..d70a914cba11 100644 --- a/include/linux/interconnect.h +++ b/include/linux/interconnect.h @@ -30,6 +30,7 @@ struct icc_path *icc_get(struct device *dev, const int src_id, struct icc_path *of_icc_get(struct device *dev, const char *name); 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); #else @@ -54,6 +55,10 @@ static inline int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) return 0; } +static inline void icc_set_tag(struct icc_path *path, u32 tag) +{ +} + #endif /* CONFIG_INTERCONNECT */ #endif /* __LINUX_INTERCONNECT_H */ |