From e96bf391b828b062654f08122fea8006f30a1840 Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Mon, 5 Jun 2017 13:37:38 +0530 Subject: [PATCH] post_boot: Update cpuset configuration for SDM660 and SDM630 Apply the restrictions for background and system-background after the boot is completed in post boot script. Change-Id: I51952831155d3ff69ce0c5511f0af17d9c8d5651 Signed-off-by: Pavankumar Kondeti --- rootdir/etc/init.qcom.post_boot.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index 31d4daa7..76a3ef1f 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1673,6 +1673,10 @@ case "$target" in echo 1 > /proc/sys/kernel/sched_restrict_cluster_spill echo 100000 > /proc/sys/kernel/sched_short_burst_ns + # cpuset settings + echo 0-3 > /dev/cpuset/background/cpus + echo 0-3 > /dev/cpuset/system-background/cpus + # disable thermal bcl hotplug to switch governor echo 0 > /sys/module/msm_thermal/core_control/enabled @@ -1808,6 +1812,10 @@ case "$target" in echo 1 > /proc/sys/kernel/sched_restrict_cluster_spill echo 50000 > /proc/sys/kernel/sched_short_burst_ns + # cpuset settings + echo 0-3 > /dev/cpuset/background/cpus + echo 0-3 > /dev/cpuset/system-background/cpus + # disable thermal bcl hotplug to switch governor echo 0 > /sys/module/msm_thermal/core_control/enabled for mode in /sys/devices/soc.0/qcom,bcl.*/mode