post_boot: start energy-awareness and keep LPM disabled for titanium

start energy awareness service for titanium and keep
Low power modes disabled.

Change-Id: I45bf5d18e3b4f3c7fb6c0da97eaead3c759d53e7
This commit is contained in:
Maulik Shah 2015-12-29 10:31:05 +05:30 committed by Gerrit - the friendly Code Review server
parent 6ed6449ee7
commit 8788ef9245
1 changed files with 7 additions and 4 deletions

View File

@ -1063,7 +1063,7 @@ case "$target" in
esac
case "$target" in
"msmtitanium")
"titanium")
if [ -f /sys/devices/soc0/soc_id ]; then
soc_id=`cat /sys/devices/soc0/soc_id`
@ -1193,8 +1193,8 @@ case "$target" in
echo 1 > /sys/devices/system/cpu/cpu6/online
echo 1 > /sys/devices/system/cpu/cpu7/online
# Enable low power modes
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
# KEEP low power modes Disabled
echo 1 > /sys/module/lpm_levels/parameters/sleep_disabled
# SMP scheduler
echo 100 > /proc/sys/kernel/sched_upmigrate
@ -1208,6 +1208,9 @@ case "$target" in
# Set Memory parameters
configure_memory_parameters
# start energy-awareness service
start energy-awareness
;;
esac
;;
@ -1918,7 +1921,7 @@ case "$target" in
#start perfd after setprop
start perfd # start perfd on 8916 and 8939
;;
"msm8937" | "msmtitanium")
"msm8937")
rm /data/system/perfd/default_values
start perfd
;;