diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-01-06 23:38:57 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 05:05:39 -0500 |
commit | d0515d9fec68bace144fda57a69f4268fb875209 (patch) | |
tree | 5191b7e21adefacc8fdd8c5b45ae1fcdd03a5aa8 /drivers/acpi/scan.c | |
parent | 36237fa0a711c309a38d7a7a9aed727e0eb76449 (diff) | |
download | linux-d0515d9fec68bace144fda57a69f4268fb875209.tar.bz2 |
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>
Diffstat (limited to 'drivers/acpi/scan.c')
0 files changed, 0 insertions, 0 deletions