[PATCH] LG8n: Import oriole cpuctl tuning

This is done in preparation for uclamp migration and FAIR_GROUP_SCHED
enablement in kernel.

Change-Id: Ib486c9bcdfa18d7362461e1a8f66d6fb288af709
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:
Andrzej Perczak 2023-05-11 02:32:32 +02:00 committed by Shirayuki39
parent ece084b8ec
commit 990f33dc83

View file

@ -1113,3 +1113,15 @@ service vendor.charger /system/bin/charger
file /sys/fs/pstore/console-ramoops-0 r
file /sys/fs/pstore/console-ramoops r
file /proc/last_kmsg r
on property:sys.boot_completed=1
# Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 10%)
write /dev/cpuctl/background/cpu.shares 1024
write /dev/cpuctl/system-background/cpu.shares 2048
write /dev/cpuctl/system/cpu.shares 20480
# We only have system and background groups holding tasks and the groups below are empty
write /dev/cpuctl/camera-daemon/cpu.shares 20480
write /dev/cpuctl/foreground/cpu.shares 20480
write /dev/cpuctl/nnapi-hal/cpu.shares 20480
write /dev/cpuctl/rt/cpu.shares 20480
write /dev/cpuctl/top-app/cpu.shares 20480