diff options
author | Zhang Rui <rui.zhang@intel.com> | 2012-11-27 20:42:11 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-27 20:42:11 +0100 |
commit | 261cba2deb7d3bebd180c35d5dbf8961f6e9afc4 (patch) | |
tree | 60a9d395401edc63011f7c1ce7f1ddedb04895df /drivers/acpi/sleep.c | |
parent | ACPI: drop unnecessary local variable from acpi_system_write_wakeup_device() (diff) | |
download | linux-261cba2deb7d3bebd180c35d5dbf8961f6e9afc4.tar.xz linux-261cba2deb7d3bebd180c35d5dbf8961f6e9afc4.zip |
ACPI / thermal: _TMP and _CRT/_HOT/_PSV/_ACx dependency fix
On some platforms, _TMP and _CRT/_HOT/_PSV/_ACx have dependency.
And there is no way for OS to detect this dependency.
commit 9bcb8118965ab4631a65ee0726e6518f75cda6c5 shows us a problem
that _TMP must be evaluate after _CRT/_HOT/_PSV/_ACx, or else
firmware will shutdown the system.
But the machine in https://bugzilla.kernel.org/show_bug.cgi?id=43284
shows us that _PSV would return valid value only if _TMP has been
evaluated once.
With this patch, all of the control methods will be evaluated once,
in the _CRT/_HOT/_PSV/_CRT/_TMP order, before they are actually used.
[rjw: Added a local variable for the handle and modified the loop
slightly.]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: katabami <katabami@lavabit.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/sleep.c')
0 files changed, 0 insertions, 0 deletions