Merge "SSR: Add Android property to support SSR readable string"

This commit is contained in:
Linux Build Service Account 2013-04-04 21:17:46 -07:00 committed by Gerrit - the friendly Code Review server
commit 9ff1b07104
1 changed files with 13 additions and 1 deletions

14
rootdir/etc/init.qcom.rc Normal file → Executable file
View File

@ -667,11 +667,23 @@ service ssr_diag /system/bin/ssr_diag
user system
group system
# Limit to SoC reset (1) and independent SSR (3)
# Disable SSR to SoC restart
on property:persist.sys.ssr.restart_level=1
write /sys/module/subsystem_restart/parameters/restart_level 1
write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 0
write /sys/bus/msm_subsys/devices/subsys0/restart_level system
write /sys/bus/msm_subsys/devices/subsys1/restart_level system
write /sys/bus/msm_subsys/devices/subsys2/restart_level system
write /sys/bus/msm_subsys/devices/subsys3/restart_level system
# Enable SSR
on property:persist.sys.ssr.restart_level=3
write /sys/module/subsystem_restart/parameters/restart_level 3
write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 1
write /sys/bus/msm_subsys/devices/subsys0/restart_level related
write /sys/bus/msm_subsys/devices/subsys1/restart_level related
write /sys/bus/msm_subsys/devices/subsys2/restart_level related
write /sys/bus/msm_subsys/devices/subsys3/restart_level related
# Define fastmmi
service fastmmi /system/bin/mmi