aarch64: refactor HW ARM CRC32c detection
authorSitsofe Wheeler <sitsofe@yahoo.com>
Wed, 28 Mar 2018 14:49:14 +0000 (15:49 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Fri, 30 Mar 2018 15:16:48 +0000 (16:16 +0100)
commit58828d0759642a8d438c94ee96a3e9848f89102a
tree14f0ed0aa62c4e82a495cc8215d58c1818441098
parent5457259f57c651d41f6cb5ee4a7af49ff05a9aed
aarch64: refactor HW ARM CRC32c detection

- Tweak how fio does the configure probe for hardware accelerated ARM
  CRC32c
- Move the Linux specific runtime detection into os-linux.h making it
  cleaner to implement runtime probing for OSes other than Linux in the
  future
- Make the ARCH_HAVE_CRC_CRYPTO define go into the config-host.* files
  the same way as most other configure defines
- Set/use only the ARCH_HAVE_CRC_CRYPTO define rather than also
  creating/using ARCH_HAVE_ARM64_CRC_CRYPTO

This commit should silence the "Fails to compile: error: sys/auxv.h file
not found" compilation message that was seen on FreeBSD 12/arm64 (but
note a future commit will be required to implement runtime probing and
actually enable the accelerated path on that platform).

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
arch/arch-aarch64.h
configure
crc/crc32c-arm64.c
crc/crc32c.h
os/os-linux.h
os/os.h