-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
power: qpnp-fg-gen3: Limit how frequently fg data can be queried
Querying the fuelgauge for data is expensive, so doing it frequently can result in a significant increase in power consumption. Limit how frequently data queries can be sent to 5 seconds in order to prevent fuelgauge queries from consuming too much power. Only do this while there is no USB cable connected to the device, since the charger drivers need fresh statistics when there's a USB cable connected. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
- Loading branch information
1 parent
11063c2
commit bd95828
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters