diff options
author | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2017-06-05 13:06:31 +0530 |
---|---|---|
committer | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2017-06-05 13:27:30 +0530 |
commit | 6f6db13dde9a54eac6832538ed4a40ee0054a021 (patch) | |
tree | 1b9c46ca79ca228e61fa925ae5cf833d45e566ff /init.target.rc | |
parent | 8a73a15ac069890e19b5789a77a4ea4df384af90 (diff) |
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
Diffstat (limited to 'init.target.rc')
-rwxr-xr-x | init.target.rc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/init.target.rc b/init.target.rc index 874aa26..9b4144c 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 |