From b58642a2e846c35d479a17db7d8aa04ecb03e8db Mon Sep 17 00:00:00 2001 From: Vaisakh Murali Date: Thu, 5 May 2022 21:36:15 +0100 Subject: [PATCH] LG8n: Enable stune boost for top-app Reduce the top-app latencies by enabling top-app boosting. Signed-off-by: Vaisakh Murali Change-Id: I14d740559f4e913855b897bcf9060069d32f9df7 Signed-off-by: HELLINFIX Signed-off-by: xyzuniverse Signed-off-by: fjrXTR Signed-off-by: Shirayuki39 --- rootdir/etc/init/hw/init.cgroup.rc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rootdir/etc/init/hw/init.cgroup.rc b/rootdir/etc/init/hw/init.cgroup.rc index 4a0de1d..b047274 100644 --- a/rootdir/etc/init/hw/init.cgroup.rc +++ b/rootdir/etc/init/hw/init.cgroup.rc @@ -40,6 +40,16 @@ on init on property:sys.boot_completed=1 write /sys/devices/platform/soc/11270000.ufshci/clkgate_enable 1 write /proc/sys/kernel/sched_migration_cost_ns 200000 + write /proc/cpufreq/cpufreq_sched_disable 0 + + chown system system /dev/stune/foreground/schedtune.prefer_idle + chown system system /dev/stune/top-app/schedtune.prefer_idle + chown system system /dev/stune/rt/schedtune.prefer_idle + write /dev/stune/foreground/schedtune.prefer_idle 0 + write /dev/stune/top-app/schedtune.prefer_idle 0 + write /dev/stune/rt/schedtune.prefer_idle 0 + write /dev/stune/top-app/schedtune.boost 1 + write /proc/perfmgr/boost_ctrl/eas_ctrl/sched_big_task_rotation 1 # restore boot perf. tune write /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq 0