]> git.karo-electronics.de Git - linux-beck.git/commit
ACPI battery: fribble sysfs files from a resume notifier
authorKyle McMartin <kyle@redhat.com>
Tue, 22 Mar 2011 20:19:50 +0000 (16:19 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 23 Mar 2011 03:30:31 +0000 (23:30 -0400)
commit25be5821521640eb00b7eb219ffe59664510d073
treeb4bc6beeedb4b19dad4b147a1024d4c59cd33729
parent521cb40b0c44418a4fd36dc633f575813d59a43d
ACPI battery: fribble sysfs files from a resume notifier

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>
drivers/acpi/battery.c