Skip to content

Commit

Permalink
Merge "Writes cpu variant information to dev/"
Browse files Browse the repository at this point in the history
Former-commit-id: cfd0b6c19d733e2cfb8dc91c2e77b800eb4df545
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Nov 19, 2018
2 parents c60da69 + 8773309 commit 1f666d8
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 1f666d8

Please sign in to comment.