diff options
-rw-r--r-- | drivers/base/power/opp/cpu.c | 10 | ||||
-rw-r--r-- | include/linux/pm_opp.h | 20 |
2 files changed, 15 insertions, 15 deletions
diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c index 3428380dfca7..8e0b6349d7d4 100644 --- a/drivers/base/power/opp/cpu.c +++ b/drivers/base/power/opp/cpu.c | |||
@@ -132,7 +132,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_free_cpufreq_table); | |||
132 | * that this function is *NOT* called under RCU protection or in contexts where | 132 | * that this function is *NOT* called under RCU protection or in contexts where |
133 | * mutex cannot be locked. | 133 | * mutex cannot be locked. |
134 | */ | 134 | */ |
135 | void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask) | 135 | void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask) |
136 | { | 136 | { |
137 | struct device *cpu_dev; | 137 | struct device *cpu_dev; |
138 | int cpu; | 138 | int cpu; |
@@ -164,7 +164,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_of_cpumask_remove_table); | |||
164 | * that this function is *NOT* called under RCU protection or in contexts where | 164 | * that this function is *NOT* called under RCU protection or in contexts where |
165 | * mutex cannot be locked. | 165 | * mutex cannot be locked. |
166 | */ | 166 | */ |
167 | int dev_pm_opp_of_cpumask_add_table(cpumask_var_t cpumask) | 167 | int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask) |
168 | { | 168 | { |
169 | struct device *cpu_dev; | 169 | struct device *cpu_dev; |
170 | int cpu, ret = 0; | 170 | int cpu, ret = 0; |
@@ -217,7 +217,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_of_cpumask_add_table); | |||
217 | * that this function is *NOT* called under RCU protection or in contexts where | 217 | * that this function is *NOT* called under RCU protection or in contexts where |
218 | * mutex cannot be locked. | 218 | * mutex cannot be locked. |
219 | */ | 219 | */ |
220 | int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) | 220 | int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) |
221 | { | 221 | { |
222 | struct device_node *np, *tmp_np; | 222 | struct device_node *np, *tmp_np; |
223 | struct device *tcpu_dev; | 223 | struct device *tcpu_dev; |
@@ -288,7 +288,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_of_get_sharing_cpus); | |||
288 | * mutex cannot be locked. | 288 | * mutex cannot be locked. |
289 | */ | 289 | */ |
290 | int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, | 290 | int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, |
291 | const cpumask_var_t cpumask) | 291 | const struct cpumask *cpumask) |
292 | { | 292 | { |
293 | struct opp_device *opp_dev; | 293 | struct opp_device *opp_dev; |
294 | struct opp_table *opp_table; | 294 | struct opp_table *opp_table; |
@@ -346,7 +346,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus); | |||
346 | * that this function is *NOT* called under RCU protection or in contexts where | 346 | * that this function is *NOT* called under RCU protection or in contexts where |
347 | * mutex cannot be locked. | 347 | * mutex cannot be locked. |
348 | */ | 348 | */ |
349 | int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) | 349 | int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) |
350 | { | 350 | { |
351 | struct opp_device *opp_dev; | 351 | struct opp_device *opp_dev; |
352 | struct opp_table *opp_table; | 352 | struct opp_table *opp_table; |
diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index 15f554443b59..5221d259e413 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h | |||
@@ -65,8 +65,8 @@ void dev_pm_opp_put_prop_name(struct device *dev); | |||
65 | int dev_pm_opp_set_regulator(struct device *dev, const char *name); | 65 | int dev_pm_opp_set_regulator(struct device *dev, const char *name); |
66 | void dev_pm_opp_put_regulator(struct device *dev); | 66 | void dev_pm_opp_put_regulator(struct device *dev); |
67 | int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq); | 67 | int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq); |
68 | int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const cpumask_var_t cpumask); | 68 | int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask); |
69 | int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask); | 69 | int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask); |
70 | #else | 70 | #else |
71 | static inline unsigned long dev_pm_opp_get_voltage(struct dev_pm_opp *opp) | 71 | static inline unsigned long dev_pm_opp_get_voltage(struct dev_pm_opp *opp) |
72 | { | 72 | { |
@@ -180,12 +180,12 @@ static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_f | |||
180 | return -ENOTSUPP; | 180 | return -ENOTSUPP; |
181 | } | 181 | } |
182 | 182 | ||
183 | static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const cpumask_var_t cpumask) | 183 | static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask) |
184 | { | 184 | { |
185 | return -ENOTSUPP; | 185 | return -ENOTSUPP; |
186 | } | 186 | } |
187 | 187 | ||
188 | static inline int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) | 188 | static inline int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) |
189 | { | 189 | { |
190 | return -EINVAL; | 190 | return -EINVAL; |
191 | } | 191 | } |
@@ -195,9 +195,9 @@ static inline int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, cpumask_va | |||
195 | #if defined(CONFIG_PM_OPP) && defined(CONFIG_OF) | 195 | #if defined(CONFIG_PM_OPP) && defined(CONFIG_OF) |
196 | int dev_pm_opp_of_add_table(struct device *dev); | 196 | int dev_pm_opp_of_add_table(struct device *dev); |
197 | void dev_pm_opp_of_remove_table(struct device *dev); | 197 | void dev_pm_opp_of_remove_table(struct device *dev); |
198 | int dev_pm_opp_of_cpumask_add_table(cpumask_var_t cpumask); | 198 | int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask); |
199 | void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask); | 199 | void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask); |
200 | int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask); | 200 | int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask); |
201 | #else | 201 | #else |
202 | static inline int dev_pm_opp_of_add_table(struct device *dev) | 202 | static inline int dev_pm_opp_of_add_table(struct device *dev) |
203 | { | 203 | { |
@@ -208,16 +208,16 @@ static inline void dev_pm_opp_of_remove_table(struct device *dev) | |||
208 | { | 208 | { |
209 | } | 209 | } |
210 | 210 | ||
211 | static inline int dev_pm_opp_of_cpumask_add_table(cpumask_var_t cpumask) | 211 | static inline int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask) |
212 | { | 212 | { |
213 | return -ENOTSUPP; | 213 | return -ENOTSUPP; |
214 | } | 214 | } |
215 | 215 | ||
216 | static inline void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask) | 216 | static inline void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask) |
217 | { | 217 | { |
218 | } | 218 | } |
219 | 219 | ||
220 | static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) | 220 | static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) |
221 | { | 221 | { |
222 | return -ENOTSUPP; | 222 | return -ENOTSUPP; |
223 | } | 223 | } |