]> err.no Git - linux-2.6/commit
ACPI: check battery status on resume for un/plug events during sleep
authorJiri Kosina <jikos@jikos.cz>
Tue, 10 Oct 2006 21:20:41 +0000 (14:20 -0700)
committerLen Brown <len.brown@intel.com>
Sat, 14 Oct 2006 06:22:51 +0000 (02:22 -0400)
commit34c4415ab857dc6d51db08d62bcd45d4b8513bb6
tree310a568ec57a1eaceba762e6d2db8c8b9fe066d9
parent3cd5b87d96db503f69a5892b8f5350d356d18969
ACPI: check battery status on resume for un/plug events during sleep

Add ->resume method to the ACPI battery handler to check
if the battery state has changed during sleep.
If yes, update the ACPI internal data structures
for benefit of /proc/acpi/battery/.

Signed-off-by: Jiri Kosina <jikos@jikos.cz>
Cc: Stefan Seyfried <seife@suse.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c