From 91e0d6de4c8bca43bf9c1d972ca2d49fb9083365 Mon Sep 17 00:00:00 2001 From: Krishna Vanka Date: Tue, 12 Aug 2014 17:03:27 +0530 Subject: [PATCH] init.qcom.post_boot.sh: Add scheduler packing settings Enable Task Packing logic for targets with HMP Scheduler. Change-Id: Ib499e149c02944a2896aedd92c63758a6b35bd0b --- rootdir/etc/init.qcom.post_boot.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index 3e2aa9e5..52f89b5e 100755 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -462,6 +462,11 @@ case "$target" in soc_id=`cat /sys/devices/system/soc/soc0/id` fi + # Apply HMP Task packing for 8916, 8936 and 8939 + echo 30 > /proc/sys/kernel/sched_small_task + echo 50 > /proc/sys/kernel/sched_mostly_idle_load + echo 10 > /proc/sys/kernel/sched_mostly_idle_nr_run + # Apply governor settings for 8916 case "$soc_id" in "206") @@ -514,7 +519,7 @@ case "$target" in echo 1 > /sys/devices/system/cpu/cpu5/online echo 1 > /sys/devices/system/cpu/cpu6/online echo 1 > /sys/devices/system/cpu/cpu7/online - ;; + ;; esac ;; esac