Pull operating performance points (OPP) framework changes for v5.3 from Viresh Kumar: "This pull request contains: - OPP core changes to support a wider range of devices, like IO devices (Rajendra Nayak and Stehpen Boyd). - Fixes around genpd_virt_devs (Viresh Kumar). - Fix for platform with set_opp() callback (Dmitry Osipenko)." * 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm: opp: Don't use IS_ERR on invalid supplies opp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes opp: Don't overwrite rounded clk rate opp: Allocate genpd_virt_devs from dev_pm_opp_attach_genpd() opp: Attach genpds to devices from within OPP core
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -128,8 +128,8 @@ struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name); · 127 unmodified lines | ||
| 128 | 128 | void dev_pm_opp_put_clkname(struct opp_table *opp_table); |
| 129 | 129 | struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data)); |
| 130 | 130 | void dev_pm_opp_unregister_set_opp_helper(struct opp_table *opp_table); |
| 131 | −struct opp_table *dev_pm_opp_set_genpd_virt_dev(struct device *dev, struct device *virt_dev, int index); | |
| 132 | −void dev_pm_opp_put_genpd_virt_dev(struct opp_table *opp_table, struct device *virt_dev); | |
| 131 | +struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char **names); | |
| 132 | +void dev_pm_opp_detach_genpd(struct opp_table *opp_table); | |
| 133 | 133 | int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate); |
| 134 | 134 | int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq); |
| 135 | 135 | int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask); |
| @@ -292,12 +292,12 @@ static inline struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const · 156 unmodified lines | ||
| 292 | 292 | |
| 293 | 293 | static inline void dev_pm_opp_put_clkname(struct opp_table *opp_table) {} |
| 294 | 294 | |
| 295 | −static inline struct opp_table *dev_pm_opp_set_genpd_virt_dev(struct device *dev, struct device *virt_dev, int index) | |
| 295 | +static inline struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char **names) | |
| 296 | 296 | { |
| 297 | 297 | return ERR_PTR(-ENOTSUPP); |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | −static inline void dev_pm_opp_put_genpd_virt_dev(struct opp_table *opp_table, struct device *virt_dev) {} | |
| 300 | +static inline void dev_pm_opp_detach_genpd(struct opp_table *opp_table) {} | |
| 301 | 301 | |
| 302 | 302 | static inline int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate) |
| 303 | 303 | { |