Skip to content
Commit 153e500f authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

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: default avatarZhang Rui <rui.zhang@intel.com>
Acked-by: default avatarAlexey Starikovskiy <astarikovskiy@sude.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 815c4163
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment