]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ACPI battery: don't invoke power_supply_changed twice when battery is hot-added
authorZhang Rui <rui.zhang@intel.com>
Wed, 7 Jul 2010 01:11:57 +0000 (09:11 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 7 Jul 2010 02:22:46 +0000 (22:22 -0400)
commit153e500f516329f439856f52ccbf61d1fd1a946a
tree0a3e59203970f03cd0fc1839135b9eb1a6298c4c
parent815c4163b6c8ebf8152f42b0a5fd015cfdcedc78
ACPI battery: don't invoke power_supply_changed twice when battery is hot-added

When battery is hot-added, we should not invoke power_supply_changed
in acpi_battery_notify, because it has been invoked in acpi_battery_update,
and battery->bat.changed_work is queued in keventd already.
https://bugzilla.kernel.org/show_bug.cgi?id=16244

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Alexey Starikovskiy <astarikovskiy@sude.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c