mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
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.
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user