]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PM: Fix consistency check for power resources during resume
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 20:51:57 +0000 (21:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 20:51:57 +0000 (21:51 +0100)
commit5a83f02143693fcfd6712a4a72b16ecb047952e3
treede08984b801858b0be37a34cdc8493a896f39742
parent2683ce5347da12c21671a0915e6f2cf03a87f0bd
ACPI / PM: Fix consistency check for power resources during resume

During system resume we check if there are power resources that have
been turned off by the BIOS, but our reference counters for them
are nonzero (they need to be turned on then).  It turns out, however,
that we also need to check the opposite, i.e. if there are power
resources that have been turned on by the BIOS, but our reference
counters for them are zero (which means that no devices are going
to need them any time soon) and we should turn them off.

Make the power resources resume code do the additional check and
turn off the unused power resources as appropriate.

This change has been tested on HP nx6325.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/power.c