Revert "PM: sleep: Make pm_wakeup_clear() call more clear"
Subsystems (2)
PATCH 1/1 Revert "PM: sleep: Make pm_wakeup_clear() call more clear"
This reverts commit 56a232d93cea0ba14da5e3157830330756a45b4c.
The original patch changes the position of pm_wakeup_clear() for the suspend call path, but other call paths with references to freeze_processes() were not updated. This means that other call paths, such as hibernate(), will not have pm_wakeup_clear() called.
--- kernel/power/process.c | 1 + kernel/power/suspend.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
kernel/power/process.c +1 -0
@@ -132,6 +132,7 @@ int freeze_processes(void)if (!pm_freezing)static_branch_inc (&freezer_active); +pm_wakeup_clear (0 ); pm_freezing = true; error =try_to_freeze_tasks (true);if (!error)
kernel/power/suspend.c +0 -1
@@ -595,7 +595,6 @@ static int enter_state(suspend_state_t state) }pm_pr_dbg ("Preparing system for sleep (%s)\n" , mem_sleep_labels[state]); -pm_wakeup_clear (0 );pm_suspend_clear_flags (); error =suspend_prepare (state);if (error)
Signature · 1 line
2.51.1.814.gb8fa24458f-goog
Quoted 32 lines · Samuel Wu
This reverts commit
56a232d93cea0ba14da5e3157830330756a45b4c.The original patch changes the position of
pm_wakeup_clear()for the suspend call path, but other call paths with references tofreeze_processes()were not updated. This means that other call paths, such ashibernate(), will not havepm_wakeup_clear()called.Suggested-by Saravana Kannan <[email protected]>Signed-off-by Samuel Wu <[email protected]>--- kernel/power/process.c | 1 + kernel/power/suspend.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)kernel/power/process.c +1
-0@@ -132,6 +132,7 @@ int freeze_processes(void)if (!pm_freezing)static_branch_inc (&freezer_active); +pm_wakeup_clear (0 ); pm_freezing = true; error =try_to_freeze_tasks (true);if (!error)kernel/power/suspend.c +0
-0
kernel/power/suspend.c static int enter_state(suspend_state_t state)
Quoted 8 lines
kernel/power/suspend.c +0
-2@@ -595,7 +595,6 @@ static int enter_state(suspend_state_t state) }pm_pr_dbg ("Preparing system for sleep (%s)\n" , mem_sleep_labels[state]); -pm_wakeup_clear (0 );pm_suspend_clear_flags (); error =suspend_prepare (state);if (error) --
Applied as 6.18-rc material, thanks!