about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@caviumnetworks.com>2017-09-08 10:59:53 -0700
committerSteve Ellcey <sellcey@caviumnetworks.com>2017-09-08 10:59:53 -0700
commitf00bce744e12996a30b7ac5851b001b1dd7beaa9 (patch)
tree180652712380b8c1e2deeb7c73d80210e3a2f7e7 /sysdeps/unix/sysv/linux/aarch64/cpu-features.c
parentaf1b7c8ca2fa46fc52c6801869f7f54579be8a23 (diff)
downloadglibc-f00bce744e12996a30b7ac5851b001b1dd7beaa9.tar.gz
glibc-f00bce744e12996a30b7ac5851b001b1dd7beaa9.tar.xz
glibc-f00bce744e12996a30b7ac5851b001b1dd7beaa9.zip
Fix glibc.tune.cpu tunable handling
	* sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
	Use strcmp instead of tunable_is_name.
Diffstat (limited to 'sysdeps/unix/sysv/linux/aarch64/cpu-features.c')
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/cpu-features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
index 18f5e60f4c..0c7e13f4fa 100644
--- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
+++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
@@ -37,7 +37,7 @@ static uint64_t
 get_midr_from_mcpu (const char *mcpu)
 {
   for (int i = 0; i < sizeof (cpu_list) / sizeof (struct cpu_list); i++)
-    if (tunable_is_name (mcpu, cpu_list[i].name) == 0)
+    if (strcmp (mcpu, cpu_list[i].name) == 0)
       return cpu_list[i].midr;
 
   return UINT64_MAX;