diff options
author | Richard Hughes <hughsient@gmail.com> | 2009-01-25 15:05:50 +0000 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-02-21 12:36:19 -0500 |
commit | 56f382a08722186623400180adbb9d1be1721cee (patch) | |
tree | 04e50eb89f1927198e5de7b1aeeaa3f29816a66b /include/linux/ipc.h | |
parent | e83102cab0fd95d4508361b061146c978b3abd60 (diff) |
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 'include/linux/ipc.h')
0 files changed, 0 insertions, 0 deletions