public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] x86: Restore processing of cache size tunables in init_cacheinfo
@ 2020-10-30 8:41 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-10-30 8:41 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cb3a749a22a55645dc6a52659eea765300623f98
commit cb3a749a22a55645dc6a52659eea765300623f98
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Oct 28 15:53:26 2020 +0100
x86: Restore processing of cache size tunables in init_cacheinfo
Fixes and partially reverts commit 59803e81f96b479c17f583b31eac44b5
("x86: Optimizing memcpy for AMD Zen architecture.").
Diff:
---
sysdeps/x86/cacheinfo.h | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/sysdeps/x86/cacheinfo.h b/sysdeps/x86/cacheinfo.h
index 1296c93b2b..0aec0e2875 100644
--- a/sysdeps/x86/cacheinfo.h
+++ b/sysdeps/x86/cacheinfo.h
@@ -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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-30 8:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 8:41 [glibc] x86: Restore processing of cache size tunables in init_cacheinfo Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).