diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-01-29 19:27:33 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-02-05 16:28:54 +0300 |
commit | a4b64b893428734fc872a162ca7d92aa1ca1c429 (patch) | |
tree | 71c95c5c8f17e100f5c2cc7f6ef45eff04a6d8a9 /net/core/secure_seq.c | |
parent | ac6f87aaa26fa88680db23051a5d2b13a08d13b8 (diff) | |
download | linux-a4b64b893428734fc872a162ca7d92aa1ca1c429.tar.xz |
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>
Diffstat (limited to 'net/core/secure_seq.c')
0 files changed, 0 insertions, 0 deletions