mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-21 06:20:59 +00:00
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 <skannan@codeaurora.org> Signed-off-by: Rama Aparna Mallavarapu <aparnam@codeaurora.org>
36 lines
755 B
C
36 lines
755 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2014, 2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _DEVFREQ_DEVBW_H
|
|
#define _DEVFREQ_DEVBW_H
|
|
|
|
#include <linux/devfreq.h>
|
|
|
|
#ifdef CONFIG_MSM_DEVFREQ_DEVBW
|
|
int devfreq_add_devbw(struct device *dev);
|
|
int devfreq_remove_devbw(struct device *dev);
|
|
int devfreq_suspend_devbw(struct device *dev);
|
|
int devfreq_resume_devbw(struct device *dev);
|
|
#else
|
|
static inline int devfreq_add_devbw(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int devfreq_remove_devbw(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int devfreq_suspend_devbw(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int devfreq_resume_devbw(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* _DEVFREQ_DEVBW_H */
|