Re: [RFC 1/4] PM: hibernate: export hibernation_in_progress()
From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2025-10-22 09:53:31
Also in:
linux-acpi, linux-input, lkml
From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2025-10-22 09:53:31
Also in:
linux-acpi, linux-input, lkml
On Tue, Oct 21, 2025 at 11:07 PM Mario Limonciello (AMD) (kernel.org) [off-list ref] wrote:
On 10/18/2025 9:21 AM, Muhammad Usama Anjum wrote:quoted
Export hibernation_in_progress() to be used by other modules. Add its signature when hibernation config isn't enabled as well.I wonder if you actually want to have pm_sleep_transition_in_progress() exported instead. "Logically" I would expect cancelling a hibernate and cancelling a suspend should work similarly.
Well, it does AFAICS, except that only the "freeze" and "poweroff" transitions can be aborted during hibernation. This is analogous to aborting a suspend transition. The missing part is a mechanism to cancel hibernation between image creation and the "poweroff" transition.