aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/slab.py
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2024-06-20 21:14:09 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-07-01 19:26:04 +0200
commit526294e1eb8e43bce5088806abeedeea31018641 (patch)
tree4dc50d0932aea225dd6f3a6d9370615d3aa16f8e /scripts/gdb/linux/slab.py
parent6bad28cfc30988a845fb3f59a99f4b8a4ce8fe95 (diff)
ACPI: battery: Add support for charge limiting state
The ACPI specification says that bit 3 inside the battery state signals that the battery is in charge limiting state. In this state, the platform limits the battery from reaching its full capacity, the exact limit is platform-specific. This might explain why a number of batteries reported a "Unknown" battery state in the past when using platform-specific interfaces to stop battery charging at a user defined level. Unfortunately not all platforms set this bit in such cases, so "non-charging" is still the default state when the battery is neither charging, discharging or full. Tested on a Lenovo Ideapad S145-14IWL. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20240620191410.3646-1-W_Armin@gmx.de Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions