Commit a4b64b8
committed
PM: sleep: Move some assignments from under a lock
The async_error and pm_transition variables are set under dpm_list_mtx
in multiple places in the system-wide device PM core code, which is
unnecessary and confusing, so rearrange the code so that the variables
in question are set before acquiring the lock.
While at it, add some empty code lines around locking to improve the
consistency of the code.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>1 parent ac6f87a commit a4b64b8
1 file changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | | - | |
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| 850 | + | |
850 | 851 | | |
851 | 852 | | |
852 | | - | |
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
1016 | 1015 | | |
1017 | 1016 | | |
1018 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
1019 | 1020 | | |
1020 | 1021 | | |
1021 | 1022 | | |
| |||
1294 | 1295 | | |
1295 | 1296 | | |
1296 | 1297 | | |
1297 | | - | |
| 1298 | + | |
1298 | 1299 | | |
1299 | 1300 | | |
1300 | 1301 | | |
| 1302 | + | |
| 1303 | + | |
1301 | 1304 | | |
1302 | 1305 | | |
1303 | 1306 | | |
| |||
1320 | 1323 | | |
1321 | 1324 | | |
1322 | 1325 | | |
| 1326 | + | |
1323 | 1327 | | |
| 1328 | + | |
1324 | 1329 | | |
1325 | 1330 | | |
1326 | 1331 | | |
| |||
1470 | 1475 | | |
1471 | 1476 | | |
1472 | 1477 | | |
1473 | | - | |
1474 | | - | |
| 1478 | + | |
1475 | 1479 | | |
1476 | 1480 | | |
1477 | 1481 | | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
1478 | 1486 | | |
1479 | 1487 | | |
1480 | 1488 | | |
| |||
1498 | 1506 | | |
1499 | 1507 | | |
1500 | 1508 | | |
| 1509 | + | |
1501 | 1510 | | |
| 1511 | + | |
1502 | 1512 | | |
1503 | 1513 | | |
1504 | 1514 | | |
| |||
1745 | 1755 | | |
1746 | 1756 | | |
1747 | 1757 | | |
1748 | | - | |
1749 | 1758 | | |
1750 | 1759 | | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1751 | 1763 | | |
1752 | 1764 | | |
1753 | 1765 | | |
| |||
1771 | 1783 | | |
1772 | 1784 | | |
1773 | 1785 | | |
| 1786 | + | |
1774 | 1787 | | |
| 1788 | + | |
1775 | 1789 | | |
1776 | 1790 | | |
1777 | 1791 | | |
| |||
0 commit comments