ACPI battery: fribble sysfs files from a resume notifier
commit36d08a041f93f2c5370f95f9611c9065bb79e4fb
authorKyle McMartin <kyle@redhat.com>
Tue, 22 Mar 2011 20:19:50 +0000 (22 16:19 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:41 +0000 (2 09:19 -0700)
tree1c240d13af631b0bd294357b6d4b86498f4b8b38
parent7bf87075b2ce9d35a99916b446622ba8825e7142
ACPI battery: fribble sysfs files from a resume notifier

commit 25be5821521640eb00b7eb219ffe59664510d073 upstream.

Commit da8aeb92 re-poked the battery on resume, but Linus reports that
it broke his eee and partially reverted it in b23fffd7. Unfortunately
this also results in my x201s giving crack values until the sysfs files
are poked again. In the revert message, it was suggested that we poke it
from a PM notifier, so let's do that.

With this in place, I haven't noticed the units going nutty on my
gnome-power-manager across a dozen suspends or so...

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acpi/battery.c