]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM: s2idle: Drop redundant locks when entering s2idle
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 11 Mar 2025 16:08:22 +0000 (17:08 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Mar 2025 20:14:53 +0000 (21:14 +0100)
commit0f42194c6b22d687fd53c8aea5413cf976366672
tree2591af76686dd10a12c86ce2c0c10fc6962ee089
parent13b4f9e126cb55b65430bae7e704cea23c78620c
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>
kernel/power/suspend.c