S666LN: init: Configure foreground_window group

* In V, there is a multi-window foreground group.

* Let's just kang our already-configured values for
  foreground and set them here. We may tune it later.

* https://github.com/LineageOS/android_system_core/commit/673e6bb

Change-Id: Ie95bd7ab27740e2f290e2dac8a1141fc6d0aaf81
Signed-off-by: claxten10 <claxten10@gmail.com>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
This commit is contained in:
claxten10
2025-12-11 06:43:13 +07:00
committed by KimelaZX
parent 8487da900e
commit 768549deda

View File

@@ -40,6 +40,7 @@ on init
# update cpus for cpuset cgroup
write /dev/cpuset/foreground/cpus 0-7
write /dev/cpuset/foreground_window/cpus 0-7
write /dev/cpuset/background/cpus 0-3
write /dev/cpuset/system-background/cpus 0-3
write /dev/cpuset/top-app/cpus 0-7
@@ -82,6 +83,8 @@ on boot
write /dev/cpuctl/system-background/cpu.uclamp.latency_sensitive 1
write /dev/cpuctl/foreground/cpu.uclamp.min 100
write /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive 1
write /dev/cpuctl/foreground_window/cpu.uclamp.min 100
write /dev/cpuctl/foreground_window/cpu.uclamp.latency_sensitive 1
write /dev/cpuctl/top-app/cpu.uclamp.min 100
write /dev/cpuctl/top-app/cpu.uclamp.latency_sensitive 1
write /dev/cpuctl/background/cpu.uclamp.min 100
@@ -120,6 +123,11 @@ on property:sys.boot_completed=1
write /dev/cpuctl/foreground/cpu.uclamp.max max
write /dev/cpuctl/foreground/cpu.uclamp.min 10
write /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive 0
# foreground_window
write /dev/cpuctl/foreground_window/cpu.uclamp.max max
write /dev/cpuctl/foreground_window/cpu.uclamp.min 10
write /dev/cpuctl/foreground_window/cpu.uclamp.latency_sensitive 0
# top-app
write /dev/cpuctl/top-app/cpu.uclamp.max max