Skip to content

Commit

Permalink
Merge branch 'pm-opp' into pm-cpufreq
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael J. Wysocki committed Jan 1, 2016
2 parents 7a6c79f + d9de19b commit c6f4811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/base/power/opp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,

if (!prop) {
/* Search for "opp-microvolt" */
name[13] = '\0';
sprintf(name, "opp-microvolt");
prop = of_find_property(opp->np, name, NULL);

/* Missing property isn't a problem, but an invalid entry is */
Expand Down Expand Up @@ -855,7 +855,7 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,

if (!prop) {
/* Search for "opp-microamp" */
name[12] = '\0';
sprintf(name, "opp-microamp");
prop = of_find_property(opp->np, name, NULL);
}

Expand Down
3 changes: 2 additions & 1 deletion drivers/base/power/opp/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_of_cpumask_add_table);
/*
* Works only for OPP v2 bindings.
*
* cpumask should be already set to mask of cpu_dev->id.
* Returns -ENOENT if operating-points-v2 bindings aren't supported.
*/
int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
Expand All @@ -230,6 +229,8 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask
return -ENOENT;
}

cpumask_set_cpu(cpu_dev->id, cpumask);

/* OPPs are shared ? */
if (!of_property_read_bool(np, "opp-shared"))
goto put_cpu_node;
Expand Down

0 comments on commit c6f4811

Please sign in to comment.