diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-02-27 11:53:50 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-10 14:37:26 +0200 |
commit | 3c64a5bacb6b29cb40fcdfa27fc56712bab0d41d (patch) | |
tree | e8ce665f9846e385bd3e1b3d71a83fc68792d5c1 /arch | |
parent | 913b739cd2bfcff88c9cc7b977596c4194a6dcee (diff) | |
download | linux-3c64a5bacb6b29cb40fcdfa27fc56712bab0d41d.tar.gz linux-3c64a5bacb6b29cb40fcdfa27fc56712bab0d41d.tar.bz2 linux-3c64a5bacb6b29cb40fcdfa27fc56712bab0d41d.zip |
PM: sleep: Adjust check before setting power.must_resume
[ Upstream commit eeb87d17aceab7803a5a5bcb6cf2817b745157cf ]
The check before setting power.must_resume in device_suspend_noirq()
does not take power.child_count into account, but it should do that, so
use pm_runtime_need_not_resume() in it for this purpose and adjust the
comment next to it accordingly.
Fixes: 107d47b2b95e ("PM: sleep: core: Simplify the SMART_SUSPEND flag handling")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/3353728.44csPzL39Z@rjwysocki.net
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions