diff --git a/rootdir/init.qcom.power.rc b/rootdir/init.qcom.power.rc index 061a281..41bbbab 100644 --- a/rootdir/init.qcom.power.rc +++ b/rootdir/init.qcom.power.rc @@ -1,3 +1,10 @@ +on boot + # Update foreground and background cpusets + write /dev/cpuset/foreground/cpus 0-7 + write /dev/cpuset/foreground/boost/cpus 0-3 + write /dev/cpuset/background/cpus 4-5 + write /dev/cpuset/system-background/cpus 4-7 + on enable-low-power # HMP scheduler settings write /proc/sys/kernel/sched_window_stats_policy 3 diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index fb18e92..edf7b1b 100644 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -276,11 +276,5 @@ on boot write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/fw_name PR1702898-s3528t_00260005_00380008.img write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/update_fw 1 - # update foreground cpuset now that processors are up - write /dev/cpuset/foreground/cpus 0-7 - write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/background/cpus 4-5 - write /dev/cpuset/system-background/cpus 4-7 - service mtservice /system/bin/mtd class late_start