Merge "init.rc: set initial cpuset to all cores"
am: 66f44d823f
Change-Id: I5caa54781b72126a01171fcf483eca488d90f7b5
This commit is contained in:
commit
eb9ddd14f1
1 changed files with 10 additions and 10 deletions
|
|
@ -157,25 +157,25 @@ on init
|
||||||
# this ensures that the cpusets are present and usable, but the device's
|
# this ensures that the cpusets are present and usable, but the device's
|
||||||
# init.rc must actually set the correct cpus
|
# init.rc must actually set the correct cpus
|
||||||
mkdir /dev/cpuset/foreground
|
mkdir /dev/cpuset/foreground
|
||||||
write /dev/cpuset/foreground/cpus 0
|
copy /dev/cpuset/cpus /dev/cpuset/foreground/cpus
|
||||||
write /dev/cpuset/foreground/mems 0
|
copy /dev/cpuset/mems /dev/cpuset/foreground/mems
|
||||||
mkdir /dev/cpuset/foreground/boost
|
mkdir /dev/cpuset/foreground/boost
|
||||||
write /dev/cpuset/foreground/boost/cpus 0
|
copy /dev/cpuset/cpus /dev/cpuset/foreground/boost/cpus
|
||||||
write /dev/cpuset/foreground/boost/mems 0
|
copy /dev/cpuset/mems /dev/cpuset/foreground/boost/mems
|
||||||
mkdir /dev/cpuset/background
|
mkdir /dev/cpuset/background
|
||||||
write /dev/cpuset/background/cpus 0
|
copy /dev/cpuset/cpus /dev/cpuset/background/cpus
|
||||||
write /dev/cpuset/background/mems 0
|
copy /dev/cpuset/mems /dev/cpuset/background/mems
|
||||||
|
|
||||||
# system-background is for system tasks that should only run on
|
# system-background is for system tasks that should only run on
|
||||||
# little cores, not on bigs
|
# little cores, not on bigs
|
||||||
# to be used only by init, so don't change system-bg permissions
|
# to be used only by init, so don't change system-bg permissions
|
||||||
mkdir /dev/cpuset/system-background
|
mkdir /dev/cpuset/system-background
|
||||||
write /dev/cpuset/system-background/cpus 0
|
copy /dev/cpuset/cpus /dev/cpuset/system-background/cpus
|
||||||
write /dev/cpuset/system-background/mems 0
|
copy /dev/cpuset/mems /dev/cpuset/system-background/mems
|
||||||
|
|
||||||
mkdir /dev/cpuset/top-app
|
mkdir /dev/cpuset/top-app
|
||||||
write /dev/cpuset/top-app/cpus 0
|
copy /dev/cpuset/cpus /dev/cpuset/top-app/cpus
|
||||||
write /dev/cpuset/top-app/mems 0
|
copy /dev/cpuset/mems /dev/cpuset/top-app/mems
|
||||||
|
|
||||||
# change permissions for all cpusets we'll touch at runtime
|
# change permissions for all cpusets we'll touch at runtime
|
||||||
chown system system /dev/cpuset
|
chown system system /dev/cpuset
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue