Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c6f48119
Commit
c6f48119
authored
Jan 02, 2016
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-opp' into pm-cpufreq
parents
7a6c79f2
d9de19b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
drivers/base/power/opp/core.c
drivers/base/power/opp/core.c
+2
-2
drivers/base/power/opp/cpu.c
drivers/base/power/opp/cpu.c
+2
-1
No files found.
drivers/base/power/opp/core.c
View file @
c6f48119
...
@@ -814,7 +814,7 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,
...
@@ -814,7 +814,7 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,
if
(
!
prop
)
{
if
(
!
prop
)
{
/* Search for "opp-microvolt" */
/* Search for "opp-microvolt" */
name
[
13
]
=
'\0'
;
sprintf
(
name
,
"opp-microvolt"
)
;
prop
=
of_find_property
(
opp
->
np
,
name
,
NULL
);
prop
=
of_find_property
(
opp
->
np
,
name
,
NULL
);
/* Missing property isn't a problem, but an invalid entry is */
/* Missing property isn't a problem, but an invalid entry is */
...
@@ -855,7 +855,7 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,
...
@@ -855,7 +855,7 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev,
if
(
!
prop
)
{
if
(
!
prop
)
{
/* Search for "opp-microamp" */
/* Search for "opp-microamp" */
name
[
12
]
=
'\0'
;
sprintf
(
name
,
"opp-microamp"
)
;
prop
=
of_find_property
(
opp
->
np
,
name
,
NULL
);
prop
=
of_find_property
(
opp
->
np
,
name
,
NULL
);
}
}
...
...
drivers/base/power/opp/cpu.c
View file @
c6f48119
...
@@ -214,7 +214,6 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_of_cpumask_add_table);
...
@@ -214,7 +214,6 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_of_cpumask_add_table);
/*
/*
* Works only for OPP v2 bindings.
* 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.
* 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
)
int
dev_pm_opp_of_get_sharing_cpus
(
struct
device
*
cpu_dev
,
cpumask_var_t
cpumask
)
...
@@ -230,6 +229,8 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask
...
@@ -230,6 +229,8 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask
return
-
ENOENT
;
return
-
ENOENT
;
}
}
cpumask_set_cpu
(
cpu_dev
->
id
,
cpumask
);
/* OPPs are shared ? */
/* OPPs are shared ? */
if
(
!
of_property_read_bool
(
np
,
"opp-shared"
))
if
(
!
of_property_read_bool
(
np
,
"opp-shared"
))
goto
put_cpu_node
;
goto
put_cpu_node
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment