diff options
| author | Rafael J. Wysocki <[email protected]> | 2013-08-20 01:42:32 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2013-08-21 01:23:53 +0200 |
| commit | ad07277e82dedabacc52c82746633680a3187d25 (patch) | |
| tree | fe2d921753be6d8cf4ed9e68b9ad8925212b17ea /lib/cpu-notifier-error-inject.c | |
| parent | 1aaac07112f04068d7e2fc47bb435cfd4f9d5468 (diff) | |
ACPI / PM: Hold acpi_scan_lock over system PM transitions
Bad things happen if ACPI hotplug events are handled during system
PM transitions, especially if devices are removed as a result.
To prevent those bad things from happening, acquire acpi_scan_lock
when a PM transition is started and release it when that transition
is complete or has been aborted.
This fixes resume lockup on my test-bed Acer Aspire S5 that happens
when Thunderbolt devices are disconnected from the machine while
suspended.
Also fixes the analogous problem for Mika Westerberg on an
Intel DZ77RE-75K board.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Tested-by: Mika Westerberg <[email protected]>
Acked-by: Toshi Kani <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions