]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Only retrieve AT_HWCAP once
authorAndrea Bolognani <abologna@redhat.com>
Fri, 5 Feb 2021 14:01:46 +0000 (15:01 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 9 Feb 2021 08:14:42 +0000 (09:14 +0100)
commit03af15c0242fdb485fc639f24b9acef9ac21599d
tree392a779c3c7888b223687e4fd02f65b87cce3f34
parent82ffb81c9cafbcdf7b1f56f9644883fe8398faa5
cpu: Only retrieve AT_HWCAP once

No need to fetch the same information twice.

As a side effect, this solves a bug where, on platforms where
elf_aux_info() is used instead of getauxval(), we would not
make sure the CPUID feature is available before attempting to
use it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/cpu/cpu_arm.c