From b4aa38a18e1995be26789b8a23a5332e84901b46 Mon Sep 17 00:00:00 2001 From: Archana Sathyakumar Date: Mon, 14 Apr 2014 12:05:36 -0600 Subject: [PATCH] init.qcom.post_boot: Enable idle pc for secondary core. Currently, idle pc is enabled only for core 0. Enable them for secondary cores for supported targets. Change-Id: I1cc29b5ad99653f709832076cf7a2e2868141206 --- rootdir/etc/init.qcom.post_boot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index e0f91155..f7ab45a6 100755 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -351,6 +351,9 @@ case "$target" in echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled echo 1 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu2/online echo 1 > /sys/devices/system/cpu/cpu3/online @@ -373,6 +376,9 @@ case "$target" in echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled echo 1 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu2/online echo 1 > /sys/devices/system/cpu/cpu3/online @@ -415,6 +421,9 @@ case "$target" in echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled + echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled echo 1 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu2/online echo 1 > /sys/devices/system/cpu/cpu3/online