arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1292018-5.patch

147e83
commit c9afcaaafaf9126a973883528eed8d0058a264c0
147e83
Author: H.J. Lu <hjl.tools@gmail.com>
147e83
Date:   Tue Dec 15 11:46:54 2015 -0800
147e83
147e83
    Enable Silvermont optimizations for Knights Landing
147e83
147e83
    Knights Landing processor is based on Silvermont.  This patch enables
147e83
    Silvermont optimizations for Knights Landing.
147e83
147e83
        * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
147e83
        Silvermont optimizations for Knights Landing.
147e83
147e83
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
147e83
index fba3ef0..aff894c 100644
147e83
--- a/sysdeps/x86/cpu-features.c
147e83
+++ b/sysdeps/x86/cpu-features.c
147e83
@@ -78,6 +78,9 @@ init_cpu_features (struct cpu_features *cpu_features)
147e83
 	      cpu_features->feature[index_Slow_BSF] |= bit_Slow_BSF;
147e83
 	      break;
147e83
 
147e83
+	    case 0x57:
147e83
+	      /* Knights Landing.  Enable Silvermont optimizations.  */
147e83
+
147e83
 	    case 0x37:
147e83
 	    case 0x4a:
147e83
 	    case 0x4d: