From 34271eea2dcfe42e829e8638a25dfd9871f1348a Mon Sep 17 00:00:00 2001 From: Jimmy Shiu <> Date: Sun, 9 Apr 2023 22:31:41 +0000 Subject: [PATCH] LG8n: rootdir: Always report max cpu freq to unity tasks Unity app incorrectly sets cpu affinity to max capacity cores. Setup the library name and mask to always report the same max cpu freq to the tasks. Change-Id: I1705f79249d1aa393d184caa3cccfec1563bdec7 Signed-off-by: 01soni247 <01soni247@gmail.com> Signed-off-by: xyzuniverse Signed-off-by: fjrXTR Signed-off-by: Shirayuki39 --- rootdir/etc/init/hw/init.mt6789.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init/hw/init.mt6789.rc b/rootdir/etc/init/hw/init.mt6789.rc index fc3d1ad..7a02207 100644 --- a/rootdir/etc/init/hw/init.mt6789.rc +++ b/rootdir/etc/init/hw/init.mt6789.rc @@ -1129,3 +1129,7 @@ on property:sys.boot_completed=1 write /dev/cpuctl/nnapi-hal/cpu.shares 20480 write /dev/cpuctl/rt/cpu.shares 20480 write /dev/cpuctl/top-app/cpu.shares 20480 + +# Report max frequency to unity tasks + write /proc/sys/kernel/sched_lib_name "UnityMain,libunity.so" + write /proc/sys/kernel/sched_lib_mask_force 255