summary refs log tree commit diff
path: root/virt/kvm
diff options
context:
space:
mode:
authorRichard Hughes <hughsient@gmail.com>2009-01-25 15:05:50 +0000
committerLen Brown <len.brown@intel.com>2009-02-21 12:36:19 -0500
commit56f382a08722186623400180adbb9d1be1721cee (patch)
tree04e50eb89f1927198e5de7b1aeeaa3f29816a66b /virt/kvm
parente83102cab0fd95d4508361b061146c978b3abd60 (diff)
downloadlinux-56f382a08722186623400180adbb9d1be1721cee.tar.gz
battery: don't assume we are fully charged when not charging or discharging
On hardware like the T61 it can take a couple of seconds for the battery
to start charging after the power is connected, and we incorrectly tell
userspace that we are fully charged, and then go back to charging.

Only mark a battery as fully charged when the preset charge matches either
the last full charge, or the design charge.

http://bugzilla.kernel.org/show_bug.cgi?id=12632

Signed-off-by: Richard Hughes <hughsient@gmail.com>
Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions