]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PM: wakeup: Update after recent wakeup source removal ordering change
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Nov 2025 16:14:26 +0000 (17:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Nov 2025 19:56:25 +0000 (20:56 +0100)
commit9cf02802d60af2ab52fc5f6d015baae946c85072
treee302c1022df4a5adfc85f316ee81ff8c1ffd4c45
parent352899fd911cafd16b3f41bb5c8585124dbd7f4b
PM: wakeup: Update after recent wakeup source removal ordering change

After a recent change, wakeup_source_activate() will warn that the given
wakeup source is "unregistered" after its timer has been shut down
in wakeup_source_remove() which may be somewhat confusing, so change
the warning message to say that the wakeup source is "unusable".

Accordingly, rename wakeup_source_not_registered() to
wakeup_source_not_usable() and update the comment in it
to also mention the removal of the wakeup source.

Also restore the comment in wakeup_source_remove() regarding the warning
in wakeup_source_activate() that may trigger after shutting down the
wakeup source timer.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/12788103.O9o76ZdvQC@rafael.j.wysocki
drivers/base/power/wakeup.c