PM / devfreq: icc: Add suspend/resume APIs

Absence of traffic is guaranteed when the device sitting behind a devbw
device is suspended. In such cases, it is a waste of power to make non-zero
bandwidth votes or to scale the devbw device. So, provide APIs to
suspend/resume the devbw device as needed.

Change-Id: Id58072aec7a9710eb917f248d9b9bd08d3a1ec6a
Signed-off-by: Saravana Kannan <[email protected]>
[[email protected]: renamed devbw to icc and made minor styling change]
Signed-off-by: Amir Vajid <[email protected]>
This commit is contained in:
Saravana Kannan 2019-01-16 18:20:08 -08:00 • committed by Amir Vajid
commit 74a06b81ab
3 changed files with 40 additions and 9 deletions

View file

@ -11,6 +11,8 @@
#ifdef CONFIG_QCOM_DEVFREQ_ICC
int devfreq_add_icc(struct device *dev);
int devfreq_remove_icc(struct device *dev);
int devfreq_suspend_icc(struct device *dev);
int devfreq_resume_icc(struct device *dev);
#else
static inline int devfreq_add_icc(struct device *dev)
{
@ -20,6 +22,14 @@ static inline int devfreq_remove_icc(struct device *dev)
{
return 0;
}
static inline int devfreq_suspend_icc(struct device *dev)
{
return 0;
}
static inline int devfreq_resume_icc(struct device *dev)
{
return 0;
}
#endif
#endif /* _DEVFREQ_ICC_H */