ACPI / x86: Add support for LPS0 callback handler
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 17 Mar 2022 14:14:42 +0000 (09:14 -0500)
committerHans de Goede <hdegoede@redhat.com>
Thu, 17 Mar 2022 18:47:24 +0000 (19:47 +0100)
commit20e1d6402a71dba7ad2b81f332a3c14c7d3b939b
treea132f57ee85b97bff775d1e49fefe54a49418a07
parent6060a75e77fb05c9d54ed41cccc496dd98054b57
ACPI / x86: Add support for LPS0 callback handler

Currenty the latest thing run during a suspend to idle attempt is
the LPS0 `prepare_late` callback and the earliest thing is the
`resume_early` callback.

There is a desire for the `amd-pmc` driver to suspend later in the
suspend process (ideally the very last thing), so create a callback
that it or any other driver can hook into to do this.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220317141445.6498-1-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/x86/s2idle.c
include/linux/acpi.h