diff options
author | 2025-03-11 17:08:22 +0100 | |
---|---|---|
committer | 2025-03-12 21:14:53 +0100 | |
commit | 0f42194c6b22d687fd53c8aea5413cf976366672 (patch) | |
tree | 2591af76686dd10a12c86ce2c0c10fc6962ee089 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PM: sleep: Remove unused pm_generic_ wrappers (diff) | |
download | wireguard-linux-0f42194c6b22d687fd53c8aea5413cf976366672.tar.xz wireguard-linux-0f42194c6b22d687fd53c8aea5413cf976366672.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions