diff options
| author | Kaushlendra Kumar <kaushlendra.kumar@intel.com> | 2025-10-27 10:11:27 +0530 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-11-08 12:17:28 +0100 |
| commit | 352899fd911cafd16b3f41bb5c8585124dbd7f4b (patch) | |
| tree | 51750e51e28ca5d31999ca0bacd9ad386bf7c8c3 /scripts/livepatch/init.c | |
| parent | 39ce15a48f6730c8e53cc8fd0f63995a5e4bb239 (diff) | |
PM: wakeup: Delete timer before removing wakeup source from list
Replace timer_delete_sync() with timer_shutdown_sync() and move
it before list_del_rcu() in wakeup_source_remove() to improve the
cleanup ordering and code clarity.
This ensures that the timer is stopped before removing the wakeup
source from the events list, providing a more logical cleanup
sequence.
While the current ordering is functionally correct, stopping the
timer first makes the cleanup flow more intuitive and follows the
general pattern of disabling active components before removing data
structures.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
[ rjw: Subject and changelog edits ]
Link: https://patch.msgid.link/20251027044127.2456365-1-kaushlendra.kumar@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/livepatch/init.c')
0 files changed, 0 insertions, 0 deletions
