sm8350-common: Revert Xiaomi cpuset changes

* Drop foreground and top-app cpus
* Set 0-3 as background cpus
* Drop xiaomi iolimit and custom types for shima

Change-Id: I3733e196a8ed090c15d6867b0722425435f31474
This commit is contained in:
Arian 2022-08-28 17:33:24 +02:00
parent b0fed8b209
commit caaa6afed4
3 changed files with 3 additions and 18 deletions

View File

@ -177,11 +177,8 @@ echo 10 10 10 10 10 10 10 95 > /proc/sys/kernel/sched_coloc_busy_hyst_cpu_busy_p
echo 325 > /proc/sys/kernel/walt_low_latency_task_threshold echo 325 > /proc/sys/kernel/walt_low_latency_task_threshold
# cpuset parameters # cpuset parameters
echo 0-2 > /dev/cpuset/background/cpus echo 0-3 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus echo 0-3 > /dev/cpuset/system-background/cpus
echo 4-6 > /dev/cpuset/foreground/boost/cpus
echo 0-2,4-6 > /dev/cpuset/foreground/cpus
echo 0-7 > /dev/cpuset/top-app/cpus
# configure governor settings for silver cluster # configure governor settings for silver cluster
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

View File

@ -180,17 +180,8 @@ echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus
# cpuset parameters # cpuset parameters
echo 0-2 > /dev/cpuset/background/cpus echo 0-3 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus echo 0-3 > /dev/cpuset/system-background/cpus
echo 4-6 > /dev/cpuset/foreground/boost/cpus
echo 0-2,4-6 > /dev/cpuset/foreground/cpus
echo 0-7 > /dev/cpuset/top-app/cpus
#io limit
echo 11 > /dev/cpuset/top-app/types
echo 1 > /dev/cpuset/background/types
echo 9 > /dev/cpuset/foreground/types
echo 11 > /proc/sys/kernel/mi_iolimit
# configure governor settings for silver cluster # configure governor settings for silver cluster
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

View File

@ -180,11 +180,8 @@ echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus
# cpuset parameters # cpuset parameters
echo 0-2 > /dev/cpuset/background/cpus echo 0-3 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus echo 0-3 > /dev/cpuset/system-background/cpus
echo 4-6 > /dev/cpuset/foreground/boost/cpus
echo 0-2,4-6 > /dev/cpuset/foreground/cpus
echo 0-7 > /dev/cpuset/top-app/cpus
# configure governor settings for silver cluster # configure governor settings for silver cluster
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor