diff options
author | Rajagopal Venkat <rajagopal.venkat@linaro.org> | 2012-10-26 01:50:18 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-15 00:35:04 +0100 |
commit | 206c30cfeb7c05dfb9fdfd81b1deb933627e43c1 (patch) | |
tree | 0cc26302a81b78cf7d790e0483d2734753cf3d04 /include/linux/devfreq.h | |
parent | 7e6fdd4bad033fa2d73716377b184fa975b0d985 (diff) | |
download | linux-stable-206c30cfeb7c05dfb9fdfd81b1deb933627e43c1.tar.gz linux-stable-206c30cfeb7c05dfb9fdfd81b1deb933627e43c1.tar.bz2 linux-stable-206c30cfeb7c05dfb9fdfd81b1deb933627e43c1.zip |
PM / devfreq: Add suspend and resume apis
Add devfreq suspend/resume apis for devfreq users. This patch
supports suspend and resume of devfreq load monitoring, required
for devices which can idle.
Signed-off-by: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r-- | include/linux/devfreq.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index 9cdffde74bb5..ee243a3229b8 100644 --- a/include/linux/devfreq.h +++ b/include/linux/devfreq.h @@ -158,6 +158,8 @@ extern struct devfreq *devfreq_add_device(struct device *dev, const struct devfreq_governor *governor, void *data); extern int devfreq_remove_device(struct devfreq *devfreq); +extern int devfreq_suspend_device(struct devfreq *devfreq); +extern int devfreq_resume_device(struct devfreq *devfreq); /* Helper functions for devfreq user device driver with OPP. */ extern struct opp *devfreq_recommended_opp(struct device *dev, @@ -211,6 +213,16 @@ static int devfreq_remove_device(struct devfreq *devfreq) return 0; } +static int devfreq_suspend_device(struct devfreq *devfreq) +{ + return 0; +} + +static int devfreq_resume_device(struct devfreq *devfreq) +{ + return 0; +} + static struct opp *devfreq_recommended_opp(struct device *dev, unsigned long *freq, u32 flags) { |