Skip to content

Commit

Permalink
Writes cpu variant information to dev/
Browse files Browse the repository at this point in the history
This change adds a command to init.rc to write cpu variant information to a file under dev/

Test: sync to device and make sure corresponding files are created.
Change-Id: Ibf90967f13f72af925c82ff79bd973ef4cdc4068

Former-commit-id: d60a19b184e7f337d8a695c9c915afff935c04ba
  • Loading branch information
hhb committed Nov 19, 2018
1 parent c60da69 commit 8773309
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rootdir/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ on init
# that they can be chown'd to system:system later on boot
write /sys/class/leds/vibrator/trigger "transient"

# This is used by Bionic to select optimized routines.
write /dev/cpu_variant:${ro.bionic.arch} ${ro.bionic.cpu_variant}
chmod 0444 /dev/cpu_variant:${ro.bionic.arch}
write /dev/cpu_variant:${ro.bionic.2nd_arch} ${ro.bionic.2nd_cpu_variant}
chmod 0444 /dev/cpu_variant:${ro.bionic.2nd_arch}

# Setup APEX mount point and its security context
mount tmpfs tmpfs /apex nodev noexec nosuid
chmod 0755 /apex
Expand Down

0 comments on commit 8773309

Please sign in to comment.