Merge "Add foreground/boost cpuset." into mnc-dr-dev
This commit is contained in:
commit
4a1f02eaa3
1 changed files with 6 additions and 0 deletions
|
|
@ -140,20 +140,26 @@ on init
|
||||||
mkdir /dev/cpuset
|
mkdir /dev/cpuset
|
||||||
mount cpuset none /dev/cpuset
|
mount cpuset none /dev/cpuset
|
||||||
mkdir /dev/cpuset/foreground
|
mkdir /dev/cpuset/foreground
|
||||||
|
mkdir /dev/cpuset/foreground/boost
|
||||||
mkdir /dev/cpuset/background
|
mkdir /dev/cpuset/background
|
||||||
# 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
|
||||||
write /dev/cpuset/foreground/cpus 0
|
write /dev/cpuset/foreground/cpus 0
|
||||||
|
write /dev/cpuset/foreground/boost/cpus 0
|
||||||
write /dev/cpuset/background/cpus 0
|
write /dev/cpuset/background/cpus 0
|
||||||
write /dev/cpuset/foreground/mems 0
|
write /dev/cpuset/foreground/mems 0
|
||||||
|
write /dev/cpuset/foreground/boost/mems 0
|
||||||
write /dev/cpuset/background/mems 0
|
write /dev/cpuset/background/mems 0
|
||||||
chown system system /dev/cpuset
|
chown system system /dev/cpuset
|
||||||
chown system system /dev/cpuset/foreground
|
chown system system /dev/cpuset/foreground
|
||||||
|
chown system system /dev/cpuset/foreground/boost
|
||||||
chown system system /dev/cpuset/background
|
chown system system /dev/cpuset/background
|
||||||
chown system system /dev/cpuset/tasks
|
chown system system /dev/cpuset/tasks
|
||||||
chown system system /dev/cpuset/foreground/tasks
|
chown system system /dev/cpuset/foreground/tasks
|
||||||
|
chown system system /dev/cpuset/foreground/boost/tasks
|
||||||
chown system system /dev/cpuset/background/tasks
|
chown system system /dev/cpuset/background/tasks
|
||||||
chmod 0664 /dev/cpuset/foreground/tasks
|
chmod 0664 /dev/cpuset/foreground/tasks
|
||||||
|
chmod 0664 /dev/cpuset/foreground/boost/tasks
|
||||||
chmod 0664 /dev/cpuset/background/tasks
|
chmod 0664 /dev/cpuset/background/tasks
|
||||||
chmod 0664 /dev/cpuset/tasks
|
chmod 0664 /dev/cpuset/tasks
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue