commit | d0515d9fec68bace144fda57a69f4268fb875209 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rjw@sisk.pl> | Thu Jan 06 23:38:57 2011 +0100 |
committer | Len Brown <len.brown@intel.com> | Wed Jan 12 05:05:39 2011 -0500 |
tree | 5191b7e21adefacc8fdd8c5b45ae1fcdd03a5aa8 | |
parent | 36237fa0a711c309a38d7a7a9aed727e0eb76449 [diff] |
ACPI / PM: Check status of power resources under mutexes It certainly is not a good idea to execute _ON or _OFF and _STA for the same power resource at the same time which may happen in some circumstances in theory. To prevent that from happening, read the power state of each power resource under its mutex, as that will prevent the state from being changed at the same time. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>