Commit 514ff1b
cpufreq: make interface functions and lock holding state clear
cpufreq_offline() calls offline() and exit() under the policy rwsem
But they are called outside the rwsem in cpufreq_online().
Make cpufreq_online() call offline() and exit() as well as online() and
init() under the policy rwsem to achieve a clear lock relationship.
All of the init() and online() implementations in the tree only
initialize the policy object without attempting to acquire the policy
rwsem and they won't call cpufreq APIs attempting to acquire it.
Signed-off-by: Schspa Shi <schspa@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent d4627a2 commit 514ff1b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
1344 | | - | |
1345 | 1344 | | |
1346 | 1345 | | |
1347 | 1346 | | |
1348 | 1347 | | |
1349 | 1348 | | |
| 1349 | + | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| |||
1386 | 1386 | | |
1387 | 1387 | | |
1388 | 1388 | | |
1389 | | - | |
1390 | 1389 | | |
1391 | 1390 | | |
1392 | 1391 | | |
| |||
1538 | 1537 | | |
1539 | 1538 | | |
1540 | 1539 | | |
1541 | | - | |
1542 | 1540 | | |
1543 | 1541 | | |
1544 | 1542 | | |
| |||
1549 | 1547 | | |
1550 | 1548 | | |
1551 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
| |||
0 commit comments