arm: Fall back to runtime cpu feature detection via /proc/cpuinfo
authorMartin Storsjö <martin@martin.st>
Thu, 7 Feb 2013 08:54:20 +0000 (10:54 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 14 Feb 2013 08:39:23 +0000 (10:39 +0200)
commit5310da7e83ec9f149dac4c2c5a64e1a24951259e
tree3298ebac261856fa835edb7448378e6548afa756
parent4eede1fca24a24e10befab1716e042beccee8df9
arm: Fall back to runtime cpu feature detection via /proc/cpuinfo

On recent android versions, /proc/self/auxw is unreadable
(unless the process is running running under the shell uid or
in debuggable mode, which makes it hard to notice). See
http://b.android.com/43055 and
https://android-review.googlesource.com/51271 for more information
about the issue.

This makes sure e.g. neon optimizations are enabled at runtime in
android apps even when built in release mode, if configured to
use the runtime detection.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit ab8f1a698990c33afb4c1c6ae5af3d6de4f696cb)

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/arm/cpu.c