summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-07-26 16:46:41 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-09-06 11:21:25 -0700
commit491c46fc13eb7878b32525509adf91453928697b (patch)
treedfceab5662f0e94c2222b7e65a14c6f1bdc050a7 /security/selinux/hooks.c
parentb92b0cea6dd3680eebc780c7d4b8bf5928668d20 (diff)
power: qpnp-fg-gen3: update SOC masking algorithm
Currently, FULL_SOC and MONOTONIC_SOC registers are updated multiple times when the recharge SOC threshold is close enough to trigger the recharging frequently. This was leading to a SOC fluctuation when SOC masking algorithm is enabled. Rearrange charge_full_update used in SOC masking algorithm such that FULL_SOC and MONOTONIC_SOC registers are updated just once when the charge_full flag is cleared. Also, when the device is rebooted/shutdown and if charge_full flag is set, write to FULL_SOC with battery_soc and a full value to MONOTONIC_SOC registers. This helps to maintain the same SOC across a device reboot. Change-Id: I95afa90f27e4c0f948f301ff8d6a1f84ae422ef0 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions