summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2021-10-08 00:05:29 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-26 11:58:38 +0100
commit67774ff69546165169e390026f53c23ad8812faa (patch)
treebed8b0fbda2abfcddde91f4cef626e088dd6cac2 /tools/perf/scripts/python
parent22524e78fd71b442296677dde7908f24d8e49789 (diff)
ACPI: battery: Accept charges over the design capacity as full
[ Upstream commit 2835f327bd1240508db2c89fe94a056faa53c49a ] Some buggy firmware and/or brand new batteries can support a charge that's slightly over the reported design capacity. In such cases, the kernel will report to userspace that the charging state of the battery is "Unknown", when in reality the battery charge is "Full", at least from the design capacity point of view. Make the fallback condition accepts capacities over the designed capacity so userspace knows that is full. Signed-off-by: André Almeida <andrealmeid@collabora.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions