mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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:
parent
2fa5f6f0b3
commit
74a06b81ab
3 changed files with 40 additions and 9 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue