diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-28 03:34:35 +0300 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-28 03:34:35 +0300 |
| commit | 9ad55cd9e600de238e3937705e642f0253f3bc42 (patch) | |
| tree | 09a32fd285cd16d145ade7ca148def347f4f462d /include/linux | |
| parent | a7def561c2ad8572c5d016ac96949e5e9999965f (diff) | |
| parent | 4157c2fc84b21c06d9fdbaf85e8b7e0f944433f2 (diff) | |
| download | linux-9ad55cd9e600de238e3937705e642f0253f3bc42.tar.xz | |
Merge back earlier cpufreq material for v4.5.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pm_opp.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index 9a2e50337af9..95403d2ccaf5 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -55,6 +55,11 @@ int dev_pm_opp_enable(struct device *dev, unsigned long freq); int dev_pm_opp_disable(struct device *dev, unsigned long freq); struct srcu_notifier_head *dev_pm_opp_get_notifier(struct device *dev); +int dev_pm_opp_set_supported_hw(struct device *dev, const u32 *versions, + unsigned int count); +void dev_pm_opp_put_supported_hw(struct device *dev); +int dev_pm_opp_set_prop_name(struct device *dev, const char *name); +void dev_pm_opp_put_prop_name(struct device *dev); #else static inline unsigned long dev_pm_opp_get_voltage(struct dev_pm_opp *opp) { @@ -129,6 +134,23 @@ static inline struct srcu_notifier_head *dev_pm_opp_get_notifier( { return ERR_PTR(-EINVAL); } + +static inline int dev_pm_opp_set_supported_hw(struct device *dev, + const u32 *versions, + unsigned int count) +{ + return -EINVAL; +} + +static inline void dev_pm_opp_put_supported_hw(struct device *dev) {} + +static inline int dev_pm_opp_set_prop_name(struct device *dev, const char *name) +{ + return -EINVAL; +} + +static inline void dev_pm_opp_put_prop_name(struct device *dev) {} + #endif /* CONFIG_PM_OPP */ #if defined(CONFIG_PM_OPP) && defined(CONFIG_OF) |
