]> sourceware.org Git - glibc.git/commitdiff
Fix glibc.tune.cpu tunable handling
authorSteve Ellcey <sellcey@caviumnetworks.com>
Fri, 8 Sep 2017 17:59:53 +0000 (10:59 -0700)
committerSteve Ellcey <sellcey@caviumnetworks.com>
Fri, 8 Sep 2017 17:59:53 +0000 (10:59 -0700)
* sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
Use strcmp instead of tunable_is_name.

ChangeLog
sysdeps/unix/sysv/linux/aarch64/cpu-features.c

index 9f085b7e6a1eaf4951c9c1b2afa619c4ecc82093..8ee6a05f28d30264371f9e2d03de0350f07ba2d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-08  Steve Ellcey  <sellcey@cavium.com>
+
+       * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
+       Use strcmp instead of tunable_is_name.
+
 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
index 18f5e60f4c8548e6d3c620d5a782edd1659914b3..0c7e13f4fa3da813f17201520b39b6140f931032 100644 (file)
@@ -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;
This page took 0.077236 seconds and 5 git commands to generate.