From e563a57105ffe72e9f8dda13411bf0463812f7e5 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 22 May 2026 10:00:05 -0300 Subject: [PATCH] x86: Revert "x86: Lower non-temporal copy threshold for Hygon" This version was superseeded by 213ffdfbbae6d4cb4e8dd4a9e3e57c69127620c4. --- sysdeps/x86/dl-cacheinfo.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sysdeps/x86/dl-cacheinfo.h b/sysdeps/x86/dl-cacheinfo.h index bc5abb8a6e..d45565b973 100644 --- a/sysdeps/x86/dl-cacheinfo.h +++ b/sysdeps/x86/dl-cacheinfo.h @@ -1244,13 +1244,6 @@ dl_init_cacheinfo (struct cpu_features *cpu_features) if (!CPU_FEATURES_ARCH_P (cpu_features, Avoid_Non_Temporal_Memset)) memset_non_temporal_threshold = non_temporal_threshold; - /* Hygon benefits from entering the non-temporal copy path earlier. - Use 3/8 of the shared cache size per thread to reduce cache - pollution and improve throughput for large copies. Keep the memset - non-temporal threshold unchanged. */ - if (cpu_features->basic.kind == arch_kind_hygon) - non_temporal_threshold = shared_per_thread * 3 / 8; - tunable_size = TUNABLE_GET (x86_non_temporal_threshold, long int, NULL); if (tunable_size > minimum_non_temporal_threshold && tunable_size <= maximum_non_temporal_threshold) -- 2.47.3