History

Merge branch 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm

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

Rafael J. Wysocki committed 7 years ago

Commit 41de2562 parents 4b972a0 560d1bc3 files · +121 −91Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/pm_opp.h+4−4
@@ -128,8 +128,8 @@ struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name); · 127 unmodified lines
128128 void dev_pm_opp_put_clkname(struct opp_table *opp_table);
129129 struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data));
130130 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);
133133 int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate);
134134 int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq);
135135 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
292292
293293 static inline void dev_pm_opp_put_clkname(struct opp_table *opp_table) {}
294294
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)
296296 {
297297 return ERR_PTR(-ENOTSUPP);
298298 }
299299
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) {}
301301
302302 static inline int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate)
303303 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t