History

OPP: Introduce dev_pm_opp_find_freq_ceil_by_volt()

This patch introduces a new helper routine in the OPP core, which returns the OPP with the highest frequency which has voltage less than or equal to the target voltage passed to the helper.

Andrew-sh.Cheng committed 7 years ago

Commit 2f36bde1 parent 9e98c672 files · +62 −0Browse files

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

Unified · Split

include/linux/pm_opp.h+8−0
@@ -102,6 +102,8 @@ struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, · 101 unmodified lines
102102
103103 struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
104104 unsigned long *freq);
105+struct dev_pm_opp *dev_pm_opp_find_freq_ceil_by_volt(struct device *dev,
106+ unsigned long u_volt);
105107
106108 struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
107109 unsigned long *freq);
@@ -207,6 +209,12 @@ static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev, · 99 unmodified lines
207209 return ERR_PTR(-ENOTSUPP);
208210 }
209211
212+static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil_by_volt(struct device *dev,
213+ unsigned long u_volt)
214+{
215+ return ERR_PTR(-ENOTSUPP);
216+}
217+
210218 static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
211219 unsigned long *freq)
212220 {

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