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
This commit is contained in:
parent
8a73a15ac0
commit
6f6db13dde
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue