commit | 683472d400d00dda57233cbf0e0767e039411628 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Tue Oct 30 16:21:58 2012 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Sun Nov 25 22:59:29 2012 -0800 |
tree | fb1f13ad4ffe7525cf66ac71167b1e359a3e898e | |
parent | d7cb1c7f49edbed2cc5f9943df6fc77cdc83ddf0 [diff] |
power: pm8921-bms: use configurable poll times The current code calculates the state of charge every 20 seconds. We need to increase the frequency when the voltage drops to near cutoff values. Make the poll interval configurable, choose 1 second interval when the battery nears the cutoff voltage and 20 seconds otherwise. Change-Id: I1bc779e5890f6994442c562ee5abf37c06dc6d3d Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>