From 6f6db13dde9a54eac6832538ed4a40ee0054a021 Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Mon, 5 Jun 2017 13:06:31 +0530 Subject: [PATCH] sdm660_64/sdm630_64: cleanup cpuset configuration The following changes are made to simplify the cpuset configuration. (1) Earlier kernels used to ignore any offline CPUs specified in the cpuset/cpus file. As there is no gaurantee that all gold cluster CPUs are online during init, silver cluster cpumask is written to cpuset/cpus file before writing the all possible cpumask. Recent kernels have support to handle offline CPUs written to cpuset/cpus file. When the CPU becomes online, the cpuset setting is applied. So apply the setting for a cpuset cgroup once. (2) Both SDM660 and SDM630 share the same device project, so move the final cpuset configuration to post-boot. This allows different cpuset settings for these two targets. This also improves boot-up performance as we apply the cpuset restrictions after the booting is completed. This policy is already in place for other targets like MSM8998. Change-Id: I482f6e10de2224695c319d7546b6d267d75ca4d1 --- init.target.rc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/init.target.rc b/init.target.rc index 874aa26b..9b4144cd 100755 --- a/init.target.rc +++ b/init.target.rc @@ -70,19 +70,14 @@ on post-fs-data mkdir /data/misc/seemp 0700 system system mkdir /data/misc/tloc 0700 system drmrpc -# For cpusets initialize for Silver Only first and then Silver + Gold -# Silver Only configuration cannot work with 0-7 on boot start rmt_storage start rfs_access - write /dev/cpuset/top-app/cpus 0-3 - write /dev/cpuset/foreground/cpus 0-3 - write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/background/cpus 0-3 - write /dev/cpuset/system-background/cpus 0-3 write /dev/cpuset/top-app/cpus 0-7 write /dev/cpuset/foreground/cpus 0-7 write /dev/cpuset/foreground/boost/cpus 0-7 + write /dev/cpuset/background/cpus 0-7 + write /dev/cpuset/system-background/cpus 0-7 ####Regionalization config and prop files#### chmod 0644 /persist/speccfg/spec chmod 0644 /persist/speccfg/devicetype