• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revisionb42da457425cf0941d6ea68916ba48fc0f7516ba (tree)
Zeit2018-06-13 17:15:27
AutorWei Wang <wvw@goog...>
CommiterChih-Wei Huang

Log Message

init.rc: set initial cpuset to all cores

Starting zygote early requires cpuset to be initialized to all cores for
foreground cpuset. Change to expolit all cores by default at boot and
let device manufacturers override to proper values in device specific
init script.

Bug: 36576280
Test: marlin boot fast and checked cpuset during early boot
Change-Id: I2c1ce0630e58a7b04d1a453c6740d3f0bce9de9f

Ändern Zusammenfassung

Diff

--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -158,25 +158,25 @@ on init
158158 # this ensures that the cpusets are present and usable, but the device's
159159 # init.rc must actually set the correct cpus
160160 mkdir /dev/cpuset/foreground
161- write /dev/cpuset/foreground/cpus 0
162- write /dev/cpuset/foreground/mems 0
161+ copy /dev/cpuset/cpus /dev/cpuset/foreground/cpus
162+ copy /dev/cpuset/mems /dev/cpuset/foreground/mems
163163 mkdir /dev/cpuset/foreground/boost
164- write /dev/cpuset/foreground/boost/cpus 0
165- write /dev/cpuset/foreground/boost/mems 0
164+ copy /dev/cpuset/cpus /dev/cpuset/foreground/boost/cpus
165+ copy /dev/cpuset/mems /dev/cpuset/foreground/boost/mems
166166 mkdir /dev/cpuset/background
167- write /dev/cpuset/background/cpus 0
168- write /dev/cpuset/background/mems 0
167+ copy /dev/cpuset/cpus /dev/cpuset/background/cpus
168+ copy /dev/cpuset/mems /dev/cpuset/background/mems
169169
170170 # system-background is for system tasks that should only run on
171171 # little cores, not on bigs
172172 # to be used only by init, so don't change system-bg permissions
173173 mkdir /dev/cpuset/system-background
174- write /dev/cpuset/system-background/cpus 0
175- write /dev/cpuset/system-background/mems 0
174+ copy /dev/cpuset/cpus /dev/cpuset/system-background/cpus
175+ copy /dev/cpuset/mems /dev/cpuset/system-background/mems
176176
177177 mkdir /dev/cpuset/top-app
178- write /dev/cpuset/top-app/cpus 0
179- write /dev/cpuset/top-app/mems 0
178+ copy /dev/cpuset/cpus /dev/cpuset/top-app/cpus
179+ copy /dev/cpuset/mems /dev/cpuset/top-app/mems
180180
181181 # change permissions for all cpusets we'll touch at runtime
182182 chown system system /dev/cpuset