mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ACPI: Fix D3hot v D3cold confusion
Before this patch, ACPI_STATE_D3 incorrectly referenced D3hot in some places, but D3cold in other places. After this patch, ACPI_STATE_D3 always means ACPI_STATE_D3_COLD; and all references to D3hot use ACPI_STATE_D3_HOT. ACPI's _PR3 method is used to enter both D3hot and D3cold states. What distinguishes D3hot from D3cold is the presence _PR3 (Power Resources for D3hot) If these resources are all ON, then the state is D3hot. If _PR3 is not present, or all _PR0 resources for the devices are OFF, then the state is D3cold. This patch applies after Linux-3.4-rc1. A future syntax cleanup may remove ACPI_STATE_D3 to emphasize that it always means ACPI_STATE_D3_COLD. Signed-off-by: Lin Ming <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Aaron Lu <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
ec612fcf43
commit
1cc0c998fd
4 changed files with 14 additions and 16 deletions
|
|
@ -499,9 +499,10 @@ typedef u64 acpi_integer;
|
|||
#define ACPI_STATE_D0 (u8) 0
|
||||
#define ACPI_STATE_D1 (u8) 1
|
||||
#define ACPI_STATE_D2 (u8) 2
|
||||
#define ACPI_STATE_D3 (u8) 3
|
||||
#define ACPI_STATE_D3_COLD (u8) 4
|
||||
#define ACPI_D_STATES_MAX ACPI_STATE_D3_COLD
|
||||
#define ACPI_STATE_D3_HOT (u8) 3
|
||||
#define ACPI_STATE_D3 (u8) 4
|
||||
#define ACPI_STATE_D3_COLD ACPI_STATE_D3
|
||||
#define ACPI_D_STATES_MAX ACPI_STATE_D3
|
||||
#define ACPI_D_STATE_COUNT 5
|
||||
|
||||
#define ACPI_STATE_C0 (u8) 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue