diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2025-03-11 19:08:22 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-03-12 23:14:53 +0300 |
commit | 0f42194c6b22d687fd53c8aea5413cf976366672 (patch) | |
tree | 2591af76686dd10a12c86ce2c0c10fc6962ee089 /scripts/generate_rust_analyzer.py | |
parent | 13b4f9e126cb55b65430bae7e704cea23c78620c (diff) | |
download | linux-0f42194c6b22d687fd53c8aea5413cf976366672.tar.xz |
PM: s2idle: Drop redundant locks when entering s2idle
The calls to cpus_read_lock|unlock() protects us from getting CPUS
hotplugged, while entering suspend-to-idle. However, when s2idle_enter() is
called we should be far beyond the point when CPUs may be hotplugged.
Let's therefore simplify the code and drop the use of the lock.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/20250311160827.1129643-2-ulf.hansson@linaro.org
[ rjw: Rewrote the new comment ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions