]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / Battery: Add the hibernation process in the battery_notify()
authorLan Tianyu <tianyu.lan@intel.com>
Thu, 30 Jun 2011 03:33:40 +0000 (11:33 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 14 Jul 2011 04:05:27 +0000 (00:05 -0400)
commit678c0cb34b9d2def5b3066bd38856660ac30e105
tree598ae80fbb08c82d7b97e420d4e0fcad5dcf2a51
parent346a21c56e90d45d80dc7e3ae6c98cb9e7d1f482
ACPI / Battery: Add the hibernation process in the battery_notify()

The Commit 1bf2ec165 has added a PM notifier to refresh the sys in order
to deal with the unit change of the Battery Present Rate. But it just
consided the suspend situation. The problem also will happen during the
hibernation according the bug 28192.

    https://bugzilla.kernel.org/show_bug.cgi?id=28192

This patch adds the hibernation process and fix the bug.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c