diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-04 00:06:34 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-04 00:06:34 +0200 |
commit | 835f12819ba7e51c21ae8370e8be337bf82d8de4 (patch) | |
tree | 0b8190b443a05646a943ce60d5aacb5ad4d84376 /include | |
parent | Merge branch 'pm-sleep' (diff) | |
parent | Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/mz... (diff) | |
download | linux-835f12819ba7e51c21ae8370e8be337bf82d8de4.tar.xz linux-835f12819ba7e51c21ae8370e8be337bf82d8de4.zip |
Merge branch 'pm-devfreq'
* pm-devfreq:
PM / devfreq: Fix memory leak when fail to register device
PM / devfreq: Add dependency on PM_OPP
PM / devfreq: Move private devfreq_update_stats() into devfreq
PM / devfreq: Convert to using %pOF instead of full_name
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/devfreq.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index 6c220e4ebb6b..597294e0cc40 100644 --- a/include/linux/devfreq.h +++ b/include/linux/devfreq.h @@ -214,19 +214,6 @@ extern void devm_devfreq_unregister_notifier(struct device *dev, extern struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev, int index); -/** - * devfreq_update_stats() - update the last_status pointer in struct devfreq - * @df: the devfreq instance whose status needs updating - * - * Governors are recommended to use this function along with last_status, - * which allows other entities to reuse the last_status without affecting - * the values fetched later by governors. - */ -static inline int devfreq_update_stats(struct devfreq *df) -{ - return df->profile->get_dev_status(df->dev.parent, &df->last_status); -} - #if IS_ENABLED(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND) /** * struct devfreq_simple_ondemand_data - void *data fed to struct devfreq |