summaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorJosef Gajdusek <atx@atx.name>2014-06-17 23:15:49 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-07 23:37:06 +0200
commit232de514379082e7ec431c66c9713a6ef23d5dcb (patch)
treea66ce250f7260efc070edf9ff9512eaf03d44f81 /drivers/bus
parent75646e758a0ecbed5024454507d5be5b9ea9dcbf (diff)
downloadlinux-232de514379082e7ec431c66c9713a6ef23d5dcb.tar.bz2
ACPI / battery: fix wrong value of capacity_now reported when fully charged
It seems that some batteries (noticed on DELL JYPJ136) assume capacity_now = design_capacity when fully charged. This causes reported capacity to suddenly jump to >full_charge_capacity (and that means capacity reported to userspace is >100% and incorrect) values after 99%. This patch detects capacity_now > full_charge_capacity, notifies userspace (unless it is the known bug where capacity_now == design_capacity) and trims the value to full_charge_capacity. Signed-off-by: Josef Gajdusek <atx@atx.name> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions