summaryrefslogtreecommitdiff
path: root/init.bullhead.rc
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2016-11-28 23:49:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-11-28 23:49:17 +0000
commit545ae3107b3091433b5766ac5db223cefe1d3e3f (patch)
treefe1eb56f0db36ffd5396538959546bc6010f3135 /init.bullhead.rc
parentcd7327299fb89aedec1561430d404b7ab49006ea (diff)
parent929ba306074d978ce1de50d6544ccd009fe0c97b (diff)
downloadbullhead-545ae3107b3091433b5766ac5db223cefe1d3e3f.tar.gz
Merge "bullhead: Accelerate boot by paralleling device enable"
Diffstat (limited to 'init.bullhead.rc')
-rw-r--r--init.bullhead.rc14
1 files changed, 12 insertions, 2 deletions
diff --git a/init.bullhead.rc b/init.bullhead.rc
index e3dfd99..4676d4c 100644
--- a/init.bullhead.rc
+++ b/init.bullhead.rc
@@ -97,6 +97,9 @@ on early-boot
# Update dm-verity state and set partition.*.verified properties
verity_update_state
+ # Busy loop to wait for devices booted by devstart_sh just in case device not ready
+ exec - root root system -- /system/bin/init.qcom.devwait.sh
+
on boot
# execute script to set initial CPU settings
# don't run as a service to avoid race conditions
@@ -187,7 +190,10 @@ on post-fs
mkdir /persist/widevine 0770 drm system
start qseecomd
+ # Busy loop to wait for qseecomd started
exec - root root system -- /system/bin/init.bullhead.qseecomd.sh
+ # Start devices by sysfs trigger
+ start devstart_sh
on post-fs-data
# boot time fs tune
@@ -205,8 +211,6 @@ on post-fs-data
chown radio radio /data/misc/radio/copy_complete
chmod 0660 /data/misc/radio/copy_complete
- write /sys/kernel/boot_adsp/boot 1
-
#Update touch firmware if required
write /sys/bus/i2c/devices/2-0020/check_fw 1
write /sys/devices/soc.0/f9924000.i2c/power/control on
@@ -445,3 +449,9 @@ service fingerprintd /system/bin/fingerprintd
user system
group system input
+service devstart_sh /system/bin/init.qcom.devstart.sh
+ class main
+ user root
+ group root system
+ disabled
+ oneshot