mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
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 <dev.xyzuniverse@gmail.com> Signed-off-by: fjrXTR <fajarslebew31@gmail.com> Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
37e65e2af9
commit
34271eea2d
|
@ -1129,3 +1129,7 @@ on property:sys.boot_completed=1
|
||||||
write /dev/cpuctl/nnapi-hal/cpu.shares 20480
|
write /dev/cpuctl/nnapi-hal/cpu.shares 20480
|
||||||
write /dev/cpuctl/rt/cpu.shares 20480
|
write /dev/cpuctl/rt/cpu.shares 20480
|
||||||
write /dev/cpuctl/top-app/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
|
||||||
|
|
Loading…
Reference in a new issue