]> git.baikalelectronics.ru Git - kernel.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)
commit1bf2ec165bf924c69eb149ddcab814e6624f1f1e
treeb4bc6beeedb4b19dad4b147a1024d4c59cd33729
parent5f606d388b7d90e888f8599ea3bd433cadefba0e
ACPI battery: fribble sysfs files from a resume notifier

Commit d00f3e1c re-poked the battery on resume, but Linus reports that
it broke his eee and partially reverted it in 94302564. 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