OSDN Git Service

ACPI: x86: s2idle: Adjust Microsoft LPS0 _DSM handling sequence
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 1 Jun 2023 23:39:53 +0000 (18:39 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 5 Jun 2023 17:23:05 +0000 (19:23 +0200)
commitf198478cfdc8105a1c8d8945918904f0498d19be
tree58f77ea30a276f630d84037e48e9856d40e227d6
parent89d5b7178d4edc2a5d7b6070923fe2d2125ec52a
ACPI: x86: s2idle: Adjust Microsoft LPS0 _DSM handling sequence

In Windows the Microsoft _DSM doesn't call functions 3->5->7 for suspend
and 8->6->4 for resume like Linux currently does.

Rather it calls 3->7->5 for suspend and 6->8->4 for resume.
Align this calling order for Linux as well.

Link: https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-states
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/x86/s2idle.c