Start Power HAL early

Power HAL start "on boot" trigger and we start processing hints on
boot_complete. The power start time and hint processing time different,
the reasons are both boottime and also availability of governors. The
notification of IPC is done by setting vendor.setup.power to 1.

This has been always the case. However there is new dependency in
surfaceflinger for Power HAL availability.

To workaround the dependency for early bootanim: bootanim =>
surfaceflinger => power hal, we could start Power HAL earlier by moving
from on boot to on late-fs here, as Pixel Power HAL doesn't need
anything in data/ partition e.g. neither persist property nor
configuration file.

Bug: 152131148
Test: build
Change-Id: I87d0b0ea32c86898f6bc19958d321ed177c2a739
This commit is contained in:
Wei Wang
2020-03-23 13:35:47 -07:00
parent 540f5b4b08
commit 32ce635c3b

View File

@@ -159,6 +159,7 @@ on late-fs
# Start devices by sysfs trigger
start vendor.devstart_sh
# Start services for bootanim
start vendor.power-hal-1-3
start surfaceflinger
start bootanim
start vendor.hwcomposer-2-1