diff options
author | Samuel Wu <wusamuel@google.com> | 2025-08-21 03:42:33 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-09-04 22:05:14 +0300 |
commit | 56a232d93cea0ba14da5e3157830330756a45b4c (patch) | |
tree | 0022fb33aa1f8e269e88b00af0651e3c9a600213 /net/lapb/lapb_out.c | |
parent | 98da8a4aecf584af011cdc67d9581deb21088f24 (diff) | |
download | linux-56a232d93cea0ba14da5e3157830330756a45b4c.tar.xz |
PM: sleep: Make pm_wakeup_clear() call more clear
Move pm_wakeup_clear() to the same location as other functions that do
bookkeeping prior to suspend_prepare().
Since calling pm_wakeup_clear() is a prerequisite to setting up for
suspend and enabling functionalities of suspend (like aborting during
suspend), moving pm_wakeup_clear() higher up the call stack makes its
intent more clear and obvious that it is called prior to
suspend_prepare().
After this change, there is a slightly larger window when abort events
can be registered, but otherwise suspend functionality is the same.
Suggested-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Samuel Wu <wusamuel@google.com>
Link: https://patch.msgid.link/20250821004237.2712312-2-wusamuel@google.com
Reviewed-by: Saravana Kannan <saravanak@google.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions