From 43bb34fc21922cbdec6ea786df89e9a819e39d21 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sat, 5 Nov 2016 07:58:05 +0800 Subject: [PATCH] land: Move cpuset config to power script Change-Id: I9debac486fd9e15aa526538e84c1fbf7037897e6 --- rootdir/init.qcom.power.rc | 7 +++++++ rootdir/init.target.rc | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) 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