diff options
author | Armin Wolf <W_Armin@gmx.de> | 2022-11-30 19:41:01 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-12-02 20:29:19 +0100 |
commit | 98b0cf207b61e17f3ea6d9c17334c8ffc2f44863 (patch) | |
tree | a52d171c8278569c7fc429f9d5348241783671c0 /scripts/profile2linkerlist.pl | |
parent | Linux 6.1-rc7 (diff) | |
download | linux-98b0cf207b61e17f3ea6d9c17334c8ffc2f44863.tar.xz linux-98b0cf207b61e17f3ea6d9c17334c8ffc2f44863.zip |
ACPI: battery: Call power_supply_changed() when adding hooks
If a battery hook is added to a battery, userspace software
is not informed that the available properties of the battery
might have changed. This for example causes upower to react
slowly if a new battery hook is added during runtime.
Fix this by calling power_supply_changed() if a battery hook
was successfully added/removed.
Tested on a Dell Inspiron 3505.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/profile2linkerlist.pl')
0 files changed, 0 insertions, 0 deletions