diff options
author | Lin Ming <ming.m.lin@intel.com> | 2012-03-29 08:09:39 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-30 07:47:20 +0200 |
commit | 0090def6c37c8ea29508a435e581f2ef26fea10f (patch) | |
tree | c8790571fb6cfe5ce8890706b5b44aed8005e900 /drivers/acpi/sleep.c | |
parent | ACPI: Introduce ACPI D3_COLD state support (diff) | |
download | linux-0090def6c37c8ea29508a435e581f2ef26fea10f.tar.xz linux-0090def6c37c8ea29508a435e581f2ef26fea10f.zip |
ACPI: Add interface to register/unregister device to/from power resources
Devices may share same list of power resources in _PR0, for example
Device(Dev0)
{
Name (_PR0, Package (0x01)
{
P0PR,
P1PR
})
}
Device(Dev1)
{
Name (_PR0, Package (0x01)
{
P0PR,
P1PR
}
}
Assume Dev0 and Dev1 were runtime suspended.
Then Dev0 is resumed first and it goes into D0 state.
But Dev1 is left in D0_Uninitialised state.
This is wrong. In this case, Dev1 must be resumed too.
In order to hand this case, each power resource maintains a list of
devices which relies on it.
When power resource is ON, it will check if the devices on its list
can be resumed. The device can only be resumed when all the power
resouces of its _PR0 are ON.
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/sleep.c')
0 files changed, 0 insertions, 0 deletions