[PATCH 1/2] aarch64: Remove HWCAP_CPUID from HWCAP_IMPORTANT
Szabolcs Nagy
szabolcs.nagy@arm.com
Thu Jun 28 18:22:00 GMT 2018
This partially reverts
commit f82e9672ad89ea1ef40bbe1af71478e255e87c5e
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
aarch64: Allow overriding HWCAP_CPUID feature check using HWCAP_MASK
The idea was to make it possible to disable cpuid based ifunc resolution
in glibc by changing the hwcap mask which the user could already control.
However the hwcap mask has an orthogonal role: it specifies additional
library search paths for the dynamic linker. So "cpuid" got added to
the search paths when it was set in the default mask (HWCAP_IMPORTANT),
which is not useful behaviour, the hwcap masking should not be reused
in the cpu features code.
Meanwhile there is a tunable to set the cpu explicitly so it is possible
to disable the cpuid based dispatch without using a hwcap mask:
GLIBC_TUNABLES=glibc.tune.cpu=generic
2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
* sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
Use dl_hwcap without masking.
* sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
Remove HWCAP_CPUID.
---
sysdeps/unix/sysv/linux/aarch64/cpu-features.c | 5 +----
sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h | 5 ++---
2 files changed, 3 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-aarch64-Remove-HWCAP_CPUID-from-HWCAP_IMPORTANT.diff
Type: text/x-patch
Size: 1440 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180628/56451bb8/attachment.bin>
More information about the Libc-alpha
mailing list