aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2012-09-14 00:26:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-02 10:29:54 -0700
commit2bafdfd612901af70fcea3cf1866e388eb68fdf0 (patch)
treed50736c004862e015bad8b8fa5079535d15dff05 /scripts/patch-kernel
parentd156b47c4242843096e4a13f8ace5a0626bde3e9 (diff)
ACPI / PM: Fix resource_lock dead lock in acpi_power_on_device
commit 40bf66ec9791f1452b90b82aadc3b6e6aee201f5 upstream. Commit 0090def("ACPI: Add interface to register/unregister device to/from power resources") used resource_lock to protect the devices list that relies on power resource. It caused a mutex dead lock, as below acpi_power_on ---> lock resource_lock __acpi_power_on acpi_power_on_device acpi_power_get_inferred_state acpi_power_get_list_state ---> lock resource_lock This patch adds a new mutex "devices_lock" to protect the devices list and calls acpi_power_on_device in acpi_power_on, instead of __acpi_power_on, after the resource_lock is released. [rjw: Changed data type of a boolean variable to bool.] Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Aaron Lu <aaron.lu@intel.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions