summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2022-03-01 17:02:05 +0000
committer Lais Andrade <lsandrade@google.com> 2022-03-01 17:02:05 +0000
commit8c6a02a4e0cc20a6f1dc4314b15a7e7b1cea1ae7 (patch)
treee85eb63e2d759cc18e5b3d61bffcbe4416a530d0 /api/api.go
parent5960382afe4c45adb6c09e7f46272e314be19770 (diff)
Remove double-locking from PowerManagerService.onBootPhase
The PowerManagerService.systemReady have some code that needs to be executed with the mLock held, and some that requirest it not to be held. One this is the BatterySaverPolicy.systemReady, that uses the same lock object as the PowerManagerService and explicitly required it not to be locked at that point. Moving the synchronized block inside the PHASE_BOOT_COMPLETED phase, since the incrementBootCount also don't require the lock as it acquires one as well. Fix: 222098360 Test: manual Change-Id: I1a25de3c7ba4be6d88d2654d42cdd496387391c2
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions