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=16244Signed-off-by: NZhang Rui <rui.zhang@intel.com> Acked-by: NAlexey Starikovskiy <astarikovskiy@sude.de> Signed-off-by: NLen Brown <len.brown@intel.com>
Showing
想要评论请 注册 或 登录