]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / Battery: remove battery refresh on resume
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Jan 2011 21:14:10 +0000 (13:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Jan 2011 21:14:10 +0000 (13:14 -0800)
commit9430256455afa545c50fee3ac8636d68cd02b7dd
treee6938654ca4602326069c584881a3b0809502b9d
parent774e5ea99f168e64e7dbb01129068ea75aacc174
ACPI / Battery: remove battery refresh on resume

This partially reverts commit d00f3e1c27285aca6bbde0fe27a676d82933d726
("ACPI / Battery: Update information on info notification and resume"),
which causes a hang on resume on at least some machines.

This bug was bisected on an ASUS EeePC 901, which hangs at resume time
if we do that "acpi_battery_refresh(battery)" in the battery resume
function.

Rafael suspects we'll still need to refresh the sysfs files upon resume,
but that that can be done from a PM notifier (that will run after
thawing user space).

Bisected-and-tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Len Brown <len.brown@intel.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/battery.c