Skip to content
Commit 5d77c729 authored by Wei Wang's avatar Wei Wang
Browse files

PowerManagerService: Do not hold lock for the duration of PowerHal call

Make getPowerHal return a local copy of sp<IPower> which
can be used to do PowerHAL calls without holding gPowerHal mutex.

Bug: 69475681
Test: Do powerhint with loop of adb shell "setprop ctl.restart POWERHAL_SERVICE"
Change-Id: I8d538de11a5b2347b554b64cc26aad2f3ce5d801
parent 3d1f3d50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment