mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
x86: Restore processing of cache size tunables in init_cacheinfo
Fixes and partially reverts commit 59803e81f9
("x86: Optimizing memcpy for AMD Zen architecture.").
This commit is contained in:
@@ -354,11 +354,9 @@ init_cacheinfo (void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Prefer cache size configure via tuning. */
|
||||
if (cpu_features->data_cache_size != 0)
|
||||
{
|
||||
if (data == 0 || cpu_features->basic.kind != arch_kind_amd)
|
||||
data = cpu_features->data_cache_size;
|
||||
}
|
||||
data = cpu_features->data_cache_size;
|
||||
|
||||
if (data > 0)
|
||||
{
|
||||
@@ -370,11 +368,9 @@ init_cacheinfo (void)
|
||||
__x86_data_cache_size = data;
|
||||
}
|
||||
|
||||
/* Prefer cache size configure via tuning. */
|
||||
if (cpu_features->shared_cache_size != 0)
|
||||
{
|
||||
if (shared == 0 || cpu_features->basic.kind != arch_kind_amd)
|
||||
shared = cpu_features->shared_cache_size;
|
||||
}
|
||||
shared = cpu_features->shared_cache_size;
|
||||
|
||||
if (shared > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user