b1dca6
commit 2ee7711bdd7de9dd30073b223ce29d5cd50320f6
b1dca6
Author: H.J. Lu <hjl.tools@gmail.com>
b1dca6
Date:   Sun Dec 13 04:56:41 2020 -0800
b1dca6
b1dca6
    x86: Remove the default REP MOVSB threshold tunable value [BZ #27061]
b1dca6
    
b1dca6
    Since we can't tell if the tunable value is set by user or not:
b1dca6
    
b1dca6
    https://sourceware.org/bugzilla/show_bug.cgi?id=27069
b1dca6
    
b1dca6
    remove the default REP MOVSB threshold tunable value so that the correct
b1dca6
    default value will be set correctly by init_cacheinfo ().
b1dca6
    
b1dca6
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
b1dca6
b1dca6
diff --git a/sysdeps/x86/dl-tunables.list b/sysdeps/x86/dl-tunables.list
b1dca6
index e066313a1d1dd009..89bf296626658900 100644
b1dca6
--- a/sysdeps/x86/dl-tunables.list
b1dca6
+++ b/sysdeps/x86/dl-tunables.list
b1dca6
@@ -39,9 +39,11 @@ glibc {
b1dca6
       # REP MOVSB.  Since larger register size can move more data with a
b1dca6
       # single load and store, the threshold is higher with larger register
b1dca6
       # size.  Note: Since the REP MOVSB threshold must be greater than 8
b1dca6
-      # times of vector size, the minium value must be updated at run-time.
b1dca6
+      # times of vector size and the default value is 2048 * (vector size
b1dca6
+      # / 16), the default value and the minimum value must be updated at
b1dca6
+      # run-time.  NB: Don't set the default value since we can't tell if
b1dca6
+      # the tunable value is set by user or not [BZ #27069].
b1dca6
       minval: 1
b1dca6
-      default: 2048
b1dca6
     }
b1dca6
     x86_rep_stosb_threshold {
b1dca6
       type: SIZE_T