Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e56b5664 authored by Tim Murray's avatar Tim Murray Committed by android-build-merger
Browse files

Reorder init.rc to avoid a kernel warning.

am: f429d378

* commit 'f429d378':
  Reorder init.rc to avoid a kernel warning.
parents 43ed8e15 f429d378
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -140,23 +140,27 @@ on init
    # sets up initial cpusets for ActivityManager
    mkdir /dev/cpuset
    mount cpuset none /dev/cpuset

    # this ensures that the cpusets are present and usable, but the device's
    # init.rc must actually set the correct cpus
    mkdir /dev/cpuset/foreground
    write /dev/cpuset/foreground/cpus 0
    write /dev/cpuset/foreground/mems 0
    mkdir /dev/cpuset/foreground/boost
    write /dev/cpuset/foreground/boost/cpus 0
    write /dev/cpuset/foreground/boost/mems 0
    mkdir /dev/cpuset/background
    write /dev/cpuset/background/cpus 0
    write /dev/cpuset/background/mems 0

    # system-background is for system tasks that should only run on
    # little cores, not on bigs
    # to be used only by init, so don't change the permissions
    # to be used only by init, so don't change system-bg permissions
    mkdir /dev/cpuset/system-background
    # this ensures that the cpusets are present and usable, but the device's
    # init.rc must actually set the correct cpus
    write /dev/cpuset/foreground/cpus 0
    write /dev/cpuset/foreground/boost/cpus 0
    write /dev/cpuset/background/cpus 0
    write /dev/cpuset/system-background/cpus 0
    write /dev/cpuset/foreground/mems 0
    write /dev/cpuset/foreground/boost/mems 0
    write /dev/cpuset/background/mems 0
    write /dev/cpuset/system-background/mems 0

    # change permissions for all cpusets we'll touch at runtime
    chown system system /dev/cpuset
    chown system system /dev/cpuset/foreground
    chown system system /dev/cpuset/foreground/boost