From a3465fb86405c40c76d340a6782560f2c909ea87 Mon Sep 17 00:00:00 2001 From: Maulik Shah Date: Tue, 12 Jan 2016 10:45:06 +0530 Subject: [PATCH] post_boot: Enable LPMs for titanium Enable low power modes for titanium. Keep L2-retention mode disabled for both clusters. Change-Id: Iec36e6b2a9c7e954214058e20806eac6ec039301 --- rootdir/etc/init.qcom.post_boot.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index 87ff059d..66912064 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1193,8 +1193,10 @@ case "$target" in echo 1 > /sys/devices/system/cpu/cpu6/online echo 1 > /sys/devices/system/cpu/cpu7/online - # KEEP low power modes Disabled - echo 1 > /sys/module/lpm_levels/parameters/sleep_disabled + # Enable low power modes & keep L2 retention disabled + echo N > /sys/module/lpm_levels/system/pwr/pwr-l2-retention/idle_enabled + echo N > /sys/module/lpm_levels/system/perf/perf-l2-retention/idle_enabled + echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled # SMP scheduler echo 100 > /proc/sys/kernel/sched_upmigrate