diff options
author | Steve Ellcey <sellcey@caviumnetworks.com> | 2017-09-08 10:59:53 -0700 |
---|---|---|
committer | Steve Ellcey <sellcey@caviumnetworks.com> | 2017-09-08 10:59:53 -0700 |
commit | f00bce744e12996a30b7ac5851b001b1dd7beaa9 (patch) | |
tree | 180652712380b8c1e2deeb7c73d80210e3a2f7e7 | |
parent | af1b7c8ca2fa46fc52c6801869f7f54579be8a23 (diff) | |
download | glibc-f00bce744e12996a30b7ac5851b001b1dd7beaa9.zip glibc-f00bce744e12996a30b7ac5851b001b1dd7beaa9.tar.gz glibc-f00bce744e12996a30b7ac5851b001b1dd7beaa9.tar.bz2 |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/cpu-features.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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] diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c index 18f5e60..0c7e13f 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; |