diff options
author | 2022-11-30 19:41:01 +0100 | |
---|---|---|
committer | 2022-12-02 20:29:19 +0100 | |
commit | 98b0cf207b61e17f3ea6d9c17334c8ffc2f44863 (patch) | |
tree | a52d171c8278569c7fc429f9d5348241783671c0 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Linux 6.1-rc7 (diff) | |
download | wireguard-linux-98b0cf207b61e17f3ea6d9c17334c8ffc2f44863.tar.xz wireguard-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 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions