Skip to content
Commit 56f382a0 authored by Richard Hughes's avatar Richard Hughes Committed by Len Brown
Browse files

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: default avatarRichard Hughes <hughsient@gmail.com>
Acked-by: default avatarAlexey Starikovskiy <astarikovskiy@suse.de>
Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent e83102ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment